id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_79566689 | stackoverflow | MOBILE_DEVELOPMENT | RabbitMQ SSL connection using spring-boot-starter-amqp | RabbitMQ SSL connection using spring-boot-starter-amqp
I'm trying to connect to rabbit cluster using ssl and set spring.rabbitmq.ssl properties.
When the app tries to send message to exchange, it shows the error
"ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN". How can I properly set authentic... | https://stackoverflow.com/questions/79566689/rabbitmq-ssl-connection-using-spring-boot-starter-amqp | java, spring-boot, kotlin, rabbitmq | 1,744,289,005 |
se_66162586 | stackoverflow | MOBILE_DEVELOPMENT | The main difference between SharedFlow and StateFlow | The main difference between SharedFlow and StateFlow
What are the differences between SharedFlow and StateFlow?
And how to use these in MVI architecture? is it better to use simple Flow or these as states and events? | https://stackoverflow.com/questions/66162586/the-main-difference-between-sharedflow-and-stateflow | android, kotlin | 1,613,076,465 |
se_79962146 | stackoverflow | MOBILE_DEVELOPMENT | r2dbc call to procedure doesn't return data or they don't pass to the controller | r2dbc call to procedure doesn't return data or they don't pass to the controller
My first Spring Reactor kotlin app with r2dbc:
controller:
@RestController
class RootController (private val svc: ProcessMsgService) {
@PostMapping(
value = ["/"]
, consumes = [MediaType.APPLICATION_XML_VALUE,... | https://stackoverflow.com/questions/79962146/r2dbc-call-to-procedure-doesnt-return-data-or-they-dont-pass-to-the-controller | kotlin, spring-webflux, r2dbc | 1,781,695,846 |
se_72840374 | stackoverflow | MOBILE_DEVELOPMENT | $ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath' | $ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'
I am trying to make a Spotify clone app in Kotlin. I have not completed it yet but while checking whether it is running or not, i encountered with this error:-
Caused by: org.gradle.api.internal.artifacts.ivys... | https://stackoverflow.com/questions/72840374/artifactresolveexception-could-not-resolve-all-files-for-configuration-appd | android, kotlin, gradle, mvvm, build.gradle | 1,656,776,621 |
se_53105998 | stackoverflow | MOBILE_DEVELOPMENT | How to pass String url into URL of kotlin? | How to pass String url into URL of kotlin?
The statement
val address = URL("http://192.168.43.22:5000/post_message")
Throws the error
Expression 'URL' of type 'String' cannot be invoked as a function. The function 'invoke()' is not found
I cannot figure out why this happens. I have searched internet for an hour... | https://stackoverflow.com/questions/53105998/how-to-pass-string-url-into-url-of-kotlin | http, kotlin, httprequest | 1,541,091,901 |
se_79944311 | stackoverflow | MOBILE_DEVELOPMENT | correct way to replace super.onBackPressed() on Android 13+ when using registerOnBackInvokedCallback? | correct way to replace super.onBackPressed() on Android 13+ when using registerOnBackInvokedCallback?
What is the correct way to replace super.onBackPressed() on Android 13+ when using registerOnBackInvokedCallback?
I'm updating my Activity to support Android 13+, where onBackPressed() is deprecated.
Previously I had:... | https://stackoverflow.com/questions/79944311/correct-way-to-replace-super-onbackpressed-on-android-13-when-using-registero | android, kotlin | 1,779,312,858 |
se_56650565 | stackoverflow | MOBILE_DEVELOPMENT | How to get response status in Retrofit (Kotlin)? | How to get response status in Retrofit (Kotlin)?
I am using Retrofit. Using Kotlin. I need to know the resonse status code. Like is it 200 or 500. How can I get it from the response ?
My Api class:
interface Api {
@POST("user/code/check")
fun checkSmsCode(@Body body: CheckCodeBody): Single<Response<Void>> ... | https://stackoverflow.com/questions/56650565/how-to-get-response-status-in-retrofit-kotlin | android, kotlin, retrofit | 1,560,865,264 |
se_79945227 | stackoverflow | MOBILE_DEVELOPMENT | Disable exit transition for a single navigation action in Navigation Compose | Disable exit transition for a single navigation action in Navigation Compose
PROBLEM DESCRIPTION
I’m trying to add a force update screen to my app that imitates a bottom sheet. The force update flow has a separate NavGraphBuilder, so I show it like this:
LaunchedEffect(uiState.isNewUpdateRequired, uiState.showState) {... | https://stackoverflow.com/questions/79945227/disable-exit-transition-for-a-single-navigation-action-in-navigation-compose | android, kotlin, android-jetpack-compose, android-jetpack-navigation | 1,779,456,800 |
se_56999289 | stackoverflow | MOBILE_DEVELOPMENT | Spring JDBC Template: Can't infer the SQL type to use for an instance | Spring JDBC Template: Can't infer the SQL type to use for an instance
I'm using a jdbcTemplate query to return a list of a custom object, but I'm receiving the error "org.postgresql.util.PSQLException: Can't infer the SQL type to use for an instance of [Ljava.util.UUID;."
Here's the object type that I want to get... | https://stackoverflow.com/questions/56999289/spring-jdbc-template-cant-infer-the-sql-type-to-use-for-an-instance | spring, jdbc, kotlin, spring-jdbc, jdbctemplate | 1,562,896,532 |
se_79955855 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin ViewModel StateFlow - Properly Updating State Changes | Kotlin ViewModel StateFlow - Properly Updating State Changes
This question is to understand StateFlow in a view-model. How to update the value more than one time properly. So, a very interesting issue happens, value updates for this first time, when, say authV1 is called, but it does not update when authV2 is called, ... | https://stackoverflow.com/questions/79955855/kotlin-viewmodel-stateflow-properly-updating-state-changes | kotlin, android-jetpack-compose, kotlin-stateflow | 1,781,064,153 |
se_79962760 | stackoverflow | MOBILE_DEVELOPMENT | LazyRow keep recomposing on KMP + Decompose | LazyRow keep recomposing on KMP + Decompose
I'm tryingDecompose in a KMP app and have hoisted my state to the component. However, my lazy list is recomposed on every state update aside from search query, even when the updated state isn't used by the lazy list. For example, toggling dialog visibility or changing the FA... | https://stackoverflow.com/questions/79962760/lazyrow-keep-recomposing-on-kmp-decompose | kotlin, compose-multiplatform, decompose | 1,781,800,810 |
se_67873951 | stackoverflow | MOBILE_DEVELOPMENT | 'this@ActivityName' is not captured error Android/Kotlin | 'this@ActivityName' is not captured error Android/Kotlin
I'm repairing my friend's code and got confused.
My friend wants to fetch entered text (in EditText). Seems easy, right? Well, it is but instead of user input, he gets this warning/error:
To be honest I'm not sure how to fix it. He is coding in Kotlin (... | https://stackoverflow.com/questions/67873951/thisactivityname-is-not-captured-error-android-kotlin | android, kotlin, android-edittext, warnings | 1,623,077,700 |
se_71181790 | stackoverflow | MOBILE_DEVELOPMENT | How do you publish a Kotlin artifact to Maven Central? | How do you publish a Kotlin artifact to Maven Central?
I am struggling here to publish a Kotlin artifact to Maven Central. How do I go about doing this. Here is my build.gradle.kts. It seems as if I have to run the publish command twice. Once for the release and the other for the snapshot repository. Is this correct o... | https://stackoverflow.com/questions/71181790/how-do-you-publish-a-kotlin-artifact-to-maven-central | kotlin, gradle | 1,645,238,907 |
se_71890844 | stackoverflow | MOBILE_DEVELOPMENT | Unable to start activity ComponentInfo android.view.InflateException: Binary XML file line #67 | Unable to start activity ComponentInfo android.view.InflateException: Binary XML file line #67
In some phones the following error is occurring. I am not able to identify the problem by reviewing the log details. log details and xml file contents can view below.
java.lang.RuntimeException: Unable to start activity Comp... | https://stackoverflow.com/questions/71890844/unable-to-start-activity-componentinfo-android-view-inflateexception-binary-xml | android, kotlin, google-cloud-firestore | 1,650,079,486 |
se_79956772 | stackoverflow | MOBILE_DEVELOPMENT | Is destructuring in Kotlin really badly designed? | Is destructuring in Kotlin really badly designed?
This snippet suggests that object destructuring in Kotlin uses the order properties are declared in the class (rather than matching the variable name to the property name)
data class Person (
val age: Int = 22,
val firstName: String = "first",
val lastName:... | https://stackoverflow.com/questions/79956772/is-destructuring-in-kotlin-really-badly-designed | kotlin | 1,781,211,937 |
se_79831851 | stackoverflow | MOBILE_DEVELOPMENT | Using Kotlin Data Classes for DynamoDB | Using Kotlin Data Classes for DynamoDB
I have the following class that I am using as a dynamodb item in Kotlin
@DynamoDbBean
data class Transaction(
@get:DynamoDbPartitionKey
val userId: Int,
@get:DynamoDbSortKey
val timestamp: Long,
val ticker: String,
val transactionType: Type)
val transacti... | https://stackoverflow.com/questions/79831851/using-kotlin-data-classes-for-dynamodb | kotlin, amazon-dynamodb | 1,764,257,585 |
se_79081686 | stackoverflow | MOBILE_DEVELOPMENT | Isn't stacking suspend'able functions a performance killer? | Isn't stacking suspend'able functions a performance killer?
While diving into Android/Kotlin development, I learned that the suspend keyword transforms the function into a state machine that can be removed from its executing thread, put on hold, and resumed at some time in the future, by either the same thread... | https://stackoverflow.com/questions/79081686/isnt-stacking-suspendable-functions-a-performance-killer | android, kotlin, coroutine, suspend | 1,728,759,194 |
se_79949192 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin Multiplatform: Is there a portable way to get free disk space (like File(".").freeSpace)? | Kotlin Multiplatform: Is there a portable way to get free disk space (like File(".").freeSpace)?
I'm working on a Kotlin Multiplatform (KMP) project and need to read the free disk space (in KB) similar to the JVM API:
// JVM-only code
actual fun getFreeDiskSpaceKb(): Long {
val file = java.io.File(".")
... | https://stackoverflow.com/questions/79949192/kotlin-multiplatform-is-there-a-portable-way-to-get-free-disk-space-like-file | kotlin, kotlin-multiplatform | 1,780,219,753 |
se_52328888 | stackoverflow | MOBILE_DEVELOPMENT | log4j does not load Kotlin @Plugin class | log4j does not load Kotlin @Plugin class
Trying to extend logging logic in my Kotlin project.
Added converter for logs:
@Plugin(name = "TestConverter", category = "Converter")
@ConverterKeys("m")
class TestConverter(name: String, style: String) : LogEventPatternConverter(name, style) {
companion object {
... | https://stackoverflow.com/questions/52328888/log4j-does-not-load-kotlin-plugin-class | logging, kotlin, log4j2 | 1,536,917,088 |
se_79959376 | stackoverflow | MOBILE_DEVELOPMENT | How can I print silently on Android without using PrintManager or showing the system print dialog? | How can I print silently on Android without using PrintManager or showing the system print dialog?
I'm building a print server app for Android. The app receives print jobs from another source and should send them directly to a connected USB printer.
I do not want to use Android's built-in PrintManager because it alway... | https://stackoverflow.com/questions/79959376/how-can-i-print-silently-on-android-without-using-printmanager-or-showing-the-sy | android, kotlin, printing, apk | 1,781,562,757 |
se_79959328 | stackoverflow | MOBILE_DEVELOPMENT | Automatic population of sensor capability of wear os device | Automatic population of sensor capability of wear os device
I was working with the DataLayer for Wear OS connections with an android app, when I noticed that the Listener would not fire when listening for a custom defined capability. Interestingly, the error was a 4006 capability duplicate, the cap. "accelerometer" al... | https://stackoverflow.com/questions/79959328/automatic-population-of-sensor-capability-of-wear-os-device | android, kotlin, google-datalayer | 1,781,550,273 |
se_79956560 | stackoverflow | MOBILE_DEVELOPMENT | Jackson Serde of XML repeating elements with Kotlin | Jackson Serde of XML repeating elements with Kotlin
I'm trying to serialize/deserialize the XML document like below to/from a Kotlin data class:
<doc>
<id>123</id>
<items>
<item><c>A</c><v>1</v></item>
<item><c>B</c><v>2</v></item>
</items>
<doc>
The data class looks like:
@JacksonXmlRootElement(localNa... | https://stackoverflow.com/questions/79956560/jackson-serde-of-xml-repeating-elements-with-kotlin | kotlin, jackson, jackson-databind, jackson-dataformat-xml | 1,781,185,851 |
se_79958881 | stackoverflow | MOBILE_DEVELOPMENT | Is there a way to give Device Owner Permission in app without running it in Kiosk Mode? | Is there a way to give Device Owner Permission in app without running it in Kiosk Mode?
I am currently developing an enterprise-level Android application and need to implement a robust, seamless app-update mechanism. Specifically, my application requires the ability to perform version downgrades (installing an older A... | https://stackoverflow.com/questions/79958881/is-there-a-way-to-give-device-owner-permission-in-app-without-running-it-in-kios | java, android, kotlin, android-jetpack-compose | 1,781,460,591 |
se_74805240 | stackoverflow | MOBILE_DEVELOPMENT | How to parse large YAML file in Java or Kotlin? | How to parse large YAML file in Java or Kotlin?
I have a large YAML file (~5MB) and I need to parse it using Kotlin/JVM.
I tried using the streaming API of Jackson 2.14.1, but it throws:
com.fasterxml.jackson.dataformat.yaml.JacksonYAMLParseException: The incoming YAML document exceeds the limit: 3145728 code points.
... | https://stackoverflow.com/questions/74805240/how-to-parse-large-yaml-file-in-java-or-kotlin | java, kotlin, jackson, yaml | 1,671,060,246 |
se_79957355 | stackoverflow | MOBILE_DEVELOPMENT | How to Initialize Array of MutableList in Kotlin | How to Initialize Array of MutableList in Kotlin
I understand that initializing an array in kotlin is pretty straight-forward if you know the items to put in the array. In my situation, I know how many elements at run time, not during compile time.
What I want is an array of MutableLists. The size is given in the pa... | https://stackoverflow.com/questions/79957355/how-to-initialize-array-of-mutablelist-in-kotlin | arrays, kotlin, initialization, declaration, mutablelist | 1,781,309,913 |
se_76259793 | stackoverflow | MOBILE_DEVELOPMENT | Is it necceary to rethrow the CancellationException in kotlin | Is it necceary to rethrow the CancellationException in kotlin
I'm following the "Kotlin coroutine deep dive" book to understand coroutine a bit further. I came across the below statement in the book which I can't understand clearly and would be helpful if someone explain me with a simple example.
CancellationExceptio... | https://stackoverflow.com/questions/76259793/is-it-necceary-to-rethrow-the-cancellationexception-in-kotlin | kotlin, kotlin-coroutines | 1,684,216,694 |
se_79863287 | stackoverflow | MOBILE_DEVELOPMENT | SecurityException: Permission Denial when loading Image URI from Room Database in Fragment (Works on Emulator, Crashes on Physical Device) | SecurityException: Permission Denial when loading Image URI from Room Database in Fragment (Works on Emulator, Crashes on Physical Device)
Description: I am developing a Quiz App using Android Fragments and Room Database. I have a feature where the user can add a new Category by picking an image from the gallery.
I am... | https://stackoverflow.com/questions/79863287/securityexception-permission-denial-when-loading-image-uri-from-room-database-i | kotlin, kotlin-coroutines | 1,767,873,960 |
se_63980305 | stackoverflow | MOBILE_DEVELOPMENT | Drop "is" prefix for Firebase Firestore fields for Boolean Values | Drop "is" prefix for Firebase Firestore fields for Boolean Values
When using custom Kotlin objects for firestore drop 'is' prefix. It ruined my entire day.
data class UberRequest(val geoPoint: GeoPoint? = null,
//don't use 'is' prefix on boolean properties
... | https://stackoverflow.com/questions/63980305/drop-is-prefix-for-firebase-firestore-fields-for-boolean-values | android, firebase, kotlin, google-cloud-firestore | 1,600,613,840 |
se_79954520 | stackoverflow | MOBILE_DEVELOPMENT | Android Camera2 front camera encoder surface: physical tilt appears doubled in encoded H.264 NALs - why? | Android Camera2 front camera encoder surface: physical tilt appears doubled in encoded H.264 NALs - why?
I am writing an Android app (Flutter/Kotlin) where the display device films using its front camera via Camera2 and feeds H.264 NALs directly into a MediaCodec decoder for live display. The encoded frames are also s... | https://stackoverflow.com/questions/79954520/android-camera2-front-camera-encoder-surface-physical-tilt-appears-doubled-in-e | kotlin, opengl-es-2.0, h.264, android-camera2, android-mediacodec | 1,781,002,872 |
se_79956068 | stackoverflow | MOBILE_DEVELOPMENT | Deprecation warning for `toString()` | Deprecation warning for `toString()`
For this snippet:
class ToStringDeprecation : Exception() {
override fun toString(): String {
return super.toString()
}
}
IntelliJ IDEA strikes through the call of toString and warns:
'fun toString(): String' is deprecated. This declaration is redundant in Kotlin ... | https://stackoverflow.com/questions/79956068/deprecation-warning-for-tostring | kotlin | 1,781,101,057 |
se_78813631 | stackoverflow | MOBILE_DEVELOPMENT | Android Credentials Google Sign In Error: [16] Account reauth failed | Android Credentials Google Sign In Error: [16] Account reauth failed
Following the android guidelines to integrate Google Sign in with credentials api
Google Sign in with credentials manager
val credentialManager = CredentialManager.create(context)
val googleIdOption: GetSignInWithGoogleOption =
GetSignInWithGoogleO... | https://stackoverflow.com/questions/78813631/android-credentials-google-sign-in-error-16-account-reauth-failed | android, kotlin, android-studio, credentials | 1,722,372,519 |
se_79954538 | stackoverflow | MOBILE_DEVELOPMENT | Ktor native framework plugins list | Ktor native framework plugins list
In ktor documentation is that Ktor itself could be configured for plugins. And how I understand I can write my own plugin and register it, but from the box Ktor framework already have some plugins ( like logging )
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.k... | https://stackoverflow.com/questions/79954538/ktor-native-framework-plugins-list | kotlin, ktor, ktor-client | 1,781,004,006 |
se_79954640 | stackoverflow | MOBILE_DEVELOPMENT | Best Source Online to learn Kotlin | Best Source Online to learn Kotlin
I have recently discovered kotlin and this language is so fantastic so far. Despite fact that i hate Java's boilerplate syntax i love Kotlin and id appreciate a good source for learning it! Thank you in advance ( for some more info im new to static typed languages as before i mainly ... | https://stackoverflow.com/questions/79954640/best-source-online-to-learn-kotlin | kotlin, jvm | 1,781,015,639 |
se_79952735 | stackoverflow | MOBILE_DEVELOPMENT | How to integrate SceneView in Kotlin app? | How to integrate SceneView in Kotlin app?
I am trying to integrate SceneView in an empty project, maybe I will later use it in one of my projects so I don't want to include all the dependencies from the samples projects, only what is needed to display a 3D object with animation.
I get error: org.jetbrains.kotlin.util.... | https://stackoverflow.com/questions/79952735/how-to-integrate-sceneview-in-kotlin-app | android, kotlin, sceneview | 1,780,856,288 |
se_79922129 | stackoverflow | MOBILE_DEVELOPMENT | How can a non-default Android app send SMS automatically without user interaction? | How can a non-default Android app send SMS automatically without user interaction?
I’m developing an app that needs to send an SMS automatically when a certain event happens (e.g., a user action). The user should not have to interact with the phone after the event – the message must go out silently in the background.
... | https://stackoverflow.com/questions/79922129/how-can-a-non-default-android-app-send-sms-automatically-without-user-interactio | android, flutter, kotlin, sms, android-permissions | 1,775,642,895 |
se_79947521 | stackoverflow | MOBILE_DEVELOPMENT | Android Credential Manager Google Sign-In fails with DEVELOPER_ERROR and "Unknown calling package name 'com.google.android.gms'" | Android Credential Manager Google Sign-In fails with DEVELOPER_ERROR and "Unknown calling package name 'com.google.android.gms'"
I have been using Credential Manager for several months, but recently in March the sign-in in my application stopped working. The app freezes and it becomes impossible to c... | https://stackoverflow.com/questions/79947521/android-credential-manager-google-sign-in-fails-with-developer-error-and-unknow | android, firebase, kotlin, google-signin, android-credential-manager | 1,779,906,684 |
se_71360520 | stackoverflow | MOBILE_DEVELOPMENT | How to resize GIF/Animated WebP image files in Android? | How to resize GIF/Animated WebP image files in Android?
How to resize the dimensions (width and height) of animated image files such as GIF, Animated WebP, or APNG on Android?
Note that I'm not asking about displaying a resized image in an ImageView. I need to resize the actual animated image file and save the resized... | https://stackoverflow.com/questions/71360520/how-to-resize-gif-animated-webp-image-files-in-android | java, android, kotlin, gif, webp | 1,646,467,675 |
se_75926148 | stackoverflow | MOBILE_DEVELOPMENT | Call suspend function in non suspend function | Call suspend function in non suspend function
When using Kotlin in Android app implemention, I met this problem.
I must overwrite a function which is in the aar, so I can not change the it. It is a non suspend function.
// from the aar
class A{
fun doSomething()
}
But I have to overwrite this function and call su... | https://stackoverflow.com/questions/75926148/call-suspend-function-in-non-suspend-function | android, kotlin | 1,680,589,992 |
se_62949530 | stackoverflow | MOBILE_DEVELOPMENT | Could not play video in the path (/storage/emulated/0/Android/data/com...) | Could not play video in the path (/storage/emulated/0/Android/data/com...)
I have saved my video internally on the phone with the following code :
public static void DownloadVideo(Context context, String URL) {
DownloadManager.Request request = new DownloadManager.Request(Uri.parse(URL));
Date date = ... | https://stackoverflow.com/questions/62949530/could-not-play-video-in-the-path-storage-emulated-0-android-data-com | java, android, kotlin, android-mediaplayer, internal-storage | 1,594,972,414 |
se_79808319 | stackoverflow | MOBILE_DEVELOPMENT | GetLocation code developed under older Android Studio won't work on the latest Android Studio | GetLocation code developed under older Android Studio won't work on the latest Android Studio
I recently downloaded and updated my Android Studio to the latest and the greatest hoping that it will solve some of my issues. It turns out my old codes developed under the previous version of Android Studio won't work o... | https://stackoverflow.com/questions/79808319/getlocation-code-developed-under-older-android-studio-wont-work-on-the-latest-a | android, kotlin, android-studio, locationmanager, location-services | 1,762,204,113 |
se_45355952 | stackoverflow | MOBILE_DEVELOPMENT | Interface's inheritance - Extend an interface in Kotlin | Interface's inheritance - Extend an interface in Kotlin
I've started to convert a project's codes from java to Kotlin. I need to extend my BaseAppComponent interface. I've a problem about interface's inheritance. They are in same package.
But I see an error in AppComponent interface.
"Error:(13, 26) Unresolved ... | https://stackoverflow.com/questions/45355952/interfaces-inheritance-extend-an-interface-in-kotlin | kotlin | 1,501,171,762 |
se_69394543 | stackoverflow | MOBILE_DEVELOPMENT | fillMaxSize modifier not working when combined with VerticalScroll in Jetpack Compose | fillMaxSize modifier not working when combined with VerticalScroll in Jetpack Compose
I tried looking this up but could not find anything relevant.
I want to have a "full size" Column inside a vertically scrollable Box and this combination just doesn't seem to work. when I add the verticalScroll(rememberScrollState())... | https://stackoverflow.com/questions/69394543/fillmaxsize-modifier-not-working-when-combined-with-verticalscroll-in-jetpack-co | android, kotlin, android-jetpack-compose | 1,633,014,118 |
se_58608911 | stackoverflow | MOBILE_DEVELOPMENT | Could not get unknown property 'implementation' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler | Could not get unknown property 'implementation' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
I've searched through previous post and can't find the answer to my question here is my code from my build.gradle file.
Error: A problem occurred evaluating project ':... | https://stackoverflow.com/questions/58608911/could-not-get-unknown-property-implementation-for-object-of-type-org-gradle-ap | java, gradle, kotlin | 1,572,357,539 |
se_47970243 | stackoverflow | MOBILE_DEVELOPMENT | Unresolved references for Kotlin (JVM) Standard Library Elements | Unresolved references for Kotlin (JVM) Standard Library Elements
After adding gradle to an existing Kotlin project in IntelliJ, I started having issues with references to some standard library elements. For instance, Kotlin String type is recognized, but the mutableMapOf is giving me
Error:(11, 60) Kotlin: Unresolve... | https://stackoverflow.com/questions/47970243/unresolved-references-for-kotlin-jvm-standard-library-elements | intellij-idea, jvm, kotlin | 1,514,218,492 |
se_79950857 | stackoverflow | MOBILE_DEVELOPMENT | Android: Notification Channels or Custom In-App Preferences for Notification Categories? | Android: Notification Channels or Custom In-App Preferences for Notification Categories?
Environment
In my app, I have two main notification groups, and each of them has several sub-categories
Problem
I'm wondering what the better and more Android-native approach is for managing notification categories on Android.
Sho... | https://stackoverflow.com/questions/79950857/android-notification-channels-or-custom-in-app-preferences-for-notification-cat | android, kotlin, android-notifications | 1,780,491,434 |
se_79949666 | stackoverflow | MOBILE_DEVELOPMENT | Android Compose: Text overlapping status bar in Preview(showSystemUi = true), not on device | Android Compose: Text overlapping status bar in Preview(showSystemUi = true), not on device
I am starting my first Compose project with Android Studio (Panda 4 | 2025.3.4 Patch 1). I just opened Android Studio, slected New Project > Empty Activity, and did not add one line of code.
When I start the new app on my devic... | https://stackoverflow.com/questions/79949666/android-compose-text-overlapping-status-bar-in-previewshowsystemui-true-no | android, kotlin, android-studio, android-jetpack-compose, preview | 1,780,314,344 |
se_61796609 | stackoverflow | MOBILE_DEVELOPMENT | When using MockK coVerify, method was not called | When using MockK coVerify, method was not called
The following test is failing. I have manually tested it, and it works. But I am not sure why the method is not called. I suppose it has to do with the fact I am testing a method in a coroutine, however, I am using a TestRule that sets the dispatcher to a testDispatcher... | https://stackoverflow.com/questions/61796609/when-using-mockk-coverify-method-was-not-called | android, kotlin, mockk | 1,589,456,924 |
se_54919848 | stackoverflow | MOBILE_DEVELOPMENT | error: incompatible types: NonExistentClass cannot be converted to Annotation @error.NonExistentClass() | error: incompatible types: NonExistentClass cannot be converted to Annotation @error.NonExistentClass()
I am trying to generate Doka docs of my project. While generating I am getting an error like above. I have searched so many but could not able to get solution to this. I have gone through this link also. Here it is ... | https://stackoverflow.com/questions/54919848/error-incompatible-types-nonexistentclass-cannot-be-converted-to-annotation-e | android, kotlin, dagger-2, dagger, kotlin-dokka | 1,551,336,183 |
se_79950002 | stackoverflow | MOBILE_DEVELOPMENT | Does LazyLayoutCacheWindow ahead prefetch work on iOS in Compose Multiplatform? | Does LazyLayoutCacheWindow ahead prefetch work on iOS in Compose Multiplatform?
I’m trying to confirm the behavior of LazyLayoutCacheWindow on iOS in Compose Multiplatform.
In our project we are using Compose Multiplatform 1.10.3, and we tried something like:
@OptIn(ExperimentalFoundationApi::class)
val listState = re... | https://stackoverflow.com/questions/79950002/does-lazylayoutcachewindow-ahead-prefetch-work-on-ios-in-compose-multiplatform | kotlin, android-jetpack-compose, compose-multiplatform | 1,780,371,229 |
se_76382337 | stackoverflow | MOBILE_DEVELOPMENT | ml-kit - barcode-scanning android - Google code scanner | ml-kit - barcode-scanning android - Google code scanner
I am using Google code scanner Android MLKit for Barcode scanning. I am using below dependencies. I want the use bundled model so that initialisation time is not taken when app is launched. Is there a way can I use bundled version of model :
Please find below d... | https://stackoverflow.com/questions/76382337/ml-kit-barcode-scanning-android-google-code-scanner | android, kotlin, barcode-scanner, google-mlkit | 1,685,625,617 |
se_79923861 | stackoverflow | MOBILE_DEVELOPMENT | I can't play this specific clearkey drm in my app | I can't play this specific clearkey drm in my app
I tried this stream in other players, they played it perfectly. While, my app isn't able to play this, there shows a blank screen in my app. But, it's playable in other iptv players. Please, tell me how to fix it.
Here's showing blank screen in my app.
It's playing... | https://stackoverflow.com/questions/79923861/i-cant-play-this-specific-clearkey-drm-in-my-app | android, kotlin, exoplayer | 1,775,875,140 |
se_47871768 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin: Get file's extension e.g. ".txt" | Kotlin: Get file's extension e.g. ".txt"
Is there a standard way to get the extension of a File in Kotlin?
File("a/b/file.txt") | https://stackoverflow.com/questions/47871768/kotlin-get-files-extension-e-g-txt | java, io, kotlin | 1,513,611,701 |
se_79948136 | stackoverflow | MOBILE_DEVELOPMENT | Icon guidelines for Dynamic App Shortcuts in Android | Icon guidelines for Dynamic App Shortcuts in Android
I can't seem to get my head around how to design the icons for my app shortcuts that I handle dynamically at runtime.
When reviewing most of Google apps, I can't see consistency in the designs:
some shortcuts come with a custom background
some shortcuts have color... | https://stackoverflow.com/questions/79948136/icon-guidelines-for-dynamic-app-shortcuts-in-android | android, kotlin, drawable, android-shortcut, adaptive-icon | 1,780,002,753 |
se_79752263 | stackoverflow | MOBILE_DEVELOPMENT | How to make android studio use class imports for inline classes | How to make android studio use class imports for inline classes
I have this interface:
@Immutable
sealed interface TestUiAction{
data object OnClick
}
When I try to call it in android studio by clicking on auto suggestion:
It imports the class like this:
import package.TestUiAction
fun onUiAction(uiAction: Test... | https://stackoverflow.com/questions/79752263/how-to-make-android-studio-use-class-imports-for-inline-classes | kotlin, android-studio, import | 1,756,712,628 |
se_64909510 | stackoverflow | MOBILE_DEVELOPMENT | Textfield listener on Jetpack compose? | Textfield listener on Jetpack compose?
hi i am trying to use a textfield that upon value changes, i want it to execute a function that filters out a list of items based on the text inputted?
It does not seem to do anything.
I tried adding the searchFilter function call inside onValueChanges but upon clicking on the te... | https://stackoverflow.com/questions/64909510/textfield-listener-on-jetpack-compose | android, kotlin, android-jetpack-compose | 1,605,780,713 |
se_79809003 | stackoverflow | MOBILE_DEVELOPMENT | GrpcStreamingCall client buffers packets and flushes only after timeout — not receiving events in real-time | GrpcStreamingCall client buffers packets and flushes only after timeout — not receiving events in real-time
I'm using com.squareup.wire.GrpcStreamingCall along with OkHttp in a Kotlin mobile app to stream gRPC events from a backend service. The issue I'm facing is that the client does not receive the streamed packets ... | https://stackoverflow.com/questions/79809003/grpcstreamingcall-client-buffers-packets-and-flushes-only-after-timeout-not-re | android, kotlin, grpc, square-wire | 1,762,264,852 |
se_79946640 | stackoverflow | MOBILE_DEVELOPMENT | Ktor resources plugin - specify the structure of the request body | Ktor resources plugin - specify the structure of the request body
I'm using the Resources plugin for Ktor. In my understanding, I can use it to specify endpoints of the API along with any path or query parameters.
Can I also use the plugin to specify that an endpoint uses the POST method and expects a JSON of a specif... | https://stackoverflow.com/questions/79946640/ktor-resources-plugin-specify-the-structure-of-the-request-body | kotlin, ktor, ktor-client | 1,779,779,878 |
se_79946553 | stackoverflow | MOBILE_DEVELOPMENT | Hibernate multi-tenancy: should I use composite primary keys and composite foreign keys for tenant isolation? | Hibernate multi-tenancy: should I use composite primary keys and composite foreign keys for tenant isolation?
I am building a shared-schema multi-tenant application using Spring Boot, Hibernate 6, and PostgreSQL.
Currently I use Hibernate discriminator-style multi-tenancy with:
@TenantId
CurrentTenantIdentifierResol... | https://stackoverflow.com/questions/79946553/hibernate-multi-tenancy-should-i-use-composite-primary-keys-and-composite-forei | java, postgresql, kotlin, hibernate, multi-tenant | 1,779,762,326 |
se_79902728 | stackoverflow | MOBILE_DEVELOPMENT | Shall type-conversion be the responsibility of a function/method? | Shall type-conversion be the responsibility of a function/method?
I got the following Android UI-code:
OutlinedTextField(value = mainVM.srcAmount.doubleValue.toString(),
onValueChange = { // Implicit generated argument 'it' is a String.
mainVM.setAmount(strNewAmount = it)
}, /* ... */ )
The setAmount ... | https://stackoverflow.com/questions/79902728/shall-type-conversion-be-the-responsibility-of-a-function-method | kotlin, types, casting, android-jetpack-compose | 1,772,876,516 |
se_72450693 | stackoverflow | MOBILE_DEVELOPMENT | ListView in Fragment not showing any Items ANDROID | ListView in Fragment not showing any Items ANDROID
I'm trying to use a ListView in my Fragment which is displayed by a TabViewer2. The listadapter I used is the ArrayAdapter<String>. Unfortunately the ListView does not show any items. However the TextViews above and below the list are displayed properly.
fragment_log.... | https://stackoverflow.com/questions/72450693/listview-in-fragment-not-showing-any-items-android | android, kotlin, listview, android-arrayadapter | 1,654,011,917 |
se_76897405 | stackoverflow | MOBILE_DEVELOPMENT | How to receive and send SMS (Kotlin Android Studio) | How to receive and send SMS (Kotlin Android Studio)
I work with Kotlin Android Studio
Imagine this scenario.
I have an application that according to the conditions of the users, I want them to be able to access their information without access to the Internet and by using SMS.
For this, it is necessary that the applic... | https://stackoverflow.com/questions/76897405/how-to-receive-and-send-sms-kotlin-android-studio | android, kotlin, android-studio, sms, smsmanager | 1,692,001,759 |
se_79944014 | stackoverflow | MOBILE_DEVELOPMENT | How to prevent clicks from passing through a custom Compose bottom sheet scrim? | How to prevent clicks from passing through a custom Compose bottom sheet scrim?
Description
I'd like my CustomSheet to cover the screen properly and block all interactions with the screen underneath. I thought this was the default behaviour for any Composable that is on top. However, in this case, I can still click th... | https://stackoverflow.com/questions/79944014/how-to-prevent-clicks-from-passing-through-a-custom-compose-bottom-sheet-scrim | android, kotlin, android-jetpack-compose | 1,779,276,792 |
se_75941304 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin 'Unresolved reference: parcelize' error | Kotlin 'Unresolved reference: parcelize' error
I'm working on a multi-module Android application built in Kotlin and am trying to use the parcelize plugin to pass data between screens. However in my data class definition I'm getting 'unresolved reference' compiler errors against the @Parcelize annotation and P... | https://stackoverflow.com/questions/75941304/kotlin-unresolved-reference-parcelize-error | android, kotlin, gradle | 1,680,708,446 |
se_76339812 | stackoverflow | MOBILE_DEVELOPMENT | Flutter: Kotlin Gradle plugin version | Flutter: Kotlin Gradle plugin version
I faced an issue with the Android kotlin version. I used ext.kotlin_version = '1.7.10'. However, it's showing me this type error.
FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
T... | https://stackoverflow.com/questions/76339812/flutter-kotlin-gradle-plugin-version | flutter, kotlin, android-gradle-plugin, build.gradle | 1,685,095,828 |
se_52087239 | stackoverflow | MOBILE_DEVELOPMENT | Is it possible to modify functions during compile time through metaprogramming? | Is it possible to modify functions during compile time through metaprogramming?
In dynamic languages like JavaScript/Python, it's possible to overwrite or "modify" functions during run-time. For example, in order to modify the alert function in JS, one could do:
const _prev_alert = window.alert;
window.alert = functi... | https://stackoverflow.com/questions/52087239/is-it-possible-to-modify-functions-during-compile-time-through-metaprogramming | kotlin, overloading, kotlin-extension, self-modifying | 1,535,584,314 |
se_79944554 | stackoverflow | MOBILE_DEVELOPMENT | How to make Material3 ModalBottomSheet non-draggable while keeping internal content scrollable in Jetpack Compose? | How to make Material3 ModalBottomSheet non-draggable while keeping internal content scrollable in Jetpack Compose?
Description
I am using Material3 ModalBottomSheet in Jetpack Compose and I want to place a scrollable list inside it.
The problem is that there seems to be a gesture conflict between the scrollable conten... | https://stackoverflow.com/questions/79944554/how-to-make-material3-modalbottomsheet-non-draggable-while-keeping-internal-cont | android, kotlin, android-jetpack-compose | 1,779,357,050 |
se_47370414 | stackoverflow | MOBILE_DEVELOPMENT | How to convert function output to Unit with Kotlin | How to convert function output to Unit with Kotlin
I have troubles with a function in Kotlin that should return Unit, but due to a usage of another function returning a Boolean, there is a type mismatch.
Here is a contrived example:
fun printAndReturnTrue(bar: Int): Boolean {
println(bar)
return true
}
fun ... | https://stackoverflow.com/questions/47370414/how-to-convert-function-output-to-unit-with-kotlin | function, return, kotlin | 1,511,035,067 |
se_79937231 | stackoverflow | MOBILE_DEVELOPMENT | How to scroll to item in LazyColumn from outside the composable? | How to scroll to item in LazyColumn from outside the composable?
I've slipped the LazyColumn a LazyList State like this:
val listState = LazyListState()
@Composable
fun foo() {
LazyColumn(
state = listState
Now I want to call listState.scrollToItem(index) in a Player.Listener:
player.addListener(object :... | https://stackoverflow.com/questions/79937231/how-to-scroll-to-item-in-lazycolumn-from-outside-the-composable | android, kotlin, android-jetpack-compose, kotlin-coroutines | 1,778,099,565 |
se_70905559 | stackoverflow | MOBILE_DEVELOPMENT | When would MutableList.add() ever return false? | When would MutableList.add() ever return false?
This Android Kotlin basics tutorial about lists says:
The add() function returns true if adding the element to the list
succeeded, false otherwise
But on practice it seems the add() method either returns true when it succeeds or throws an exception if you try to pass a... | https://stackoverflow.com/questions/70905559/when-would-mutablelist-add-ever-return-false | android, kotlin | 1,643,460,592 |
se_79943230 | stackoverflow | MOBILE_DEVELOPMENT | How can I programmatically check the amount of memory available to my Android program in Kotlin? | How can I programmatically check the amount of memory available to my Android program in Kotlin?
Part of my app involves rendering pages of a PDF into bitmaps, and potentially dozens or hundreds of pages. With a screen-sized bitmap being around 16MB, I add a buffer to only load a certain number of pages around the cur... | https://stackoverflow.com/questions/79943230/how-can-i-programmatically-check-the-amount-of-memory-available-to-my-android-pr | android, kotlin, memory-management | 1,779,159,619 |
se_79940852 | stackoverflow | MOBILE_DEVELOPMENT | White screen and app freez when click on top navigation button twice in Android Jetpack Compose App | White screen and app freez when click on top navigation button twice in Android Jetpack Compose App
I’m using a TopAppBar with a hamburger menu icon and a navigation drawer (ModalNavigationDrawer + ModalDrawerSheet) in my app.
The problem happens when:
I tap the navigation icon twice quickly, or
I open the drawer fro... | https://stackoverflow.com/questions/79940852/white-screen-and-app-freez-when-click-on-top-navigation-button-twice-in-android | android, kotlin, android-jetpack-compose, modalnavigationdrawer, topappbar | 1,778,729,519 |
se_79943051 | stackoverflow | MOBILE_DEVELOPMENT | Complex Nullability in Kotlin Generics | Complex Nullability in Kotlin Generics
Short version:
In Kotlin, I have two extension functions of the following two forms:
fun <T> C1<C2<T>>.foo1(): C3<T> = TODO()
fun <T> C1<C2<T>?>.foo2(): C3<T?> = TODO()
The only difference in their types is nullability. Is there a way to express these functions with a single ty... | https://stackoverflow.com/questions/79943051/complex-nullability-in-kotlin-generics | kotlin, generics | 1,779,118,157 |
se_67901652 | stackoverflow | MOBILE_DEVELOPMENT | convert kotlin dsl gradle to groovy build.gradle | convert kotlin dsl gradle to groovy build.gradle
I created a springboot app in Kotlin&gradle with the initialiser but the auto-generated build.gradle file is in kotlin with the extension build.gralde.kts (see content below):
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.... | https://stackoverflow.com/questions/67901652/convert-kotlin-dsl-gradle-to-groovy-build-gradle | java, kotlin, gradle, build.gradle, gradle-kotlin-dsl | 1,623,232,069 |
se_79942301 | stackoverflow | MOBILE_DEVELOPMENT | WhatsApp animated stickers flatten to static when shared via custom Android keyboard (Kotlin) | WhatsApp animated stickers flatten to static when shared via custom Android keyboard (Kotlin)
I am developing a custom Android keyboard app (KBoard) in Kotlin that allows users to send stickers directly into WhatsApp chats. Static stickers work fine, but animated stickers always appear as static images once they reach... | https://stackoverflow.com/questions/79942301/whatsapp-animated-stickers-flatten-to-static-when-shared-via-custom-android-keyb | android, kotlin, whatsapp, fileprovider, inputconnection | 1,778,970,440 |
se_58217332 | stackoverflow | MOBILE_DEVELOPMENT | RecyclerView Effect Selected items in Android Kotlin | RecyclerView Effect Selected items in Android Kotlin
Programming Language : KOTLIN
Library: androidX
I am using a RecyclerView, from the AndroidX Library, in Kotlin and one problem occurred.
Problem: When I clicked on the first showing item, then more items get affected, always after 10 items.
Example: If first it... | https://stackoverflow.com/questions/58217332/recyclerview-effect-selected-items-in-android-kotlin | android, kotlin | 1,570,098,992 |
se_79939724 | stackoverflow | MOBILE_DEVELOPMENT | How to detect app install source / deferred deep link on Android (Kotlin) and iOS (Swift) after web popup campaign login? | How to detect app install source / deferred deep link on Android (Kotlin) and iOS (Swift) after web popup campaign login?
I’m developing a mobile app for both Android (Kotlin) and iOS (Swift), and I need to identify where the app installation came from.
Use case
On the website, we show a popup like:
“Install the app ... | https://stackoverflow.com/questions/79939724/how-to-detect-app-install-source-deferred-deep-link-on-android-kotlin-and-io | android, ios, swift, kotlin, mobile | 1,778,559,633 |
se_77179518 | stackoverflow | MOBILE_DEVELOPMENT | Build failed in KMM project in IOS Emulator due to Xcode Run Script phase without specified outputs | Build failed in KMM project in IOS Emulator due to Xcode Run Script phase without specified outputs
I'm working on a Kotlin Multiplatform Mobile project, and while trying to build the iOS side, I'm encountering a build failure related to a script build phase. Here's the warning I'm receiving:
warning: Run script build... | https://stackoverflow.com/questions/77179518/build-failed-in-kmm-project-in-ios-emulator-due-to-xcode-run-script-phase-withou | android, kotlin, kotlin-multiplatform | 1,695,727,032 |
se_49027140 | stackoverflow | MOBILE_DEVELOPMENT | retrofit 2 @headers error in kotlin | retrofit 2 @headers error in kotlin
I try to add multiple static headers with retrofit 2 (2.3.0) like this :
interface WeatherAPI {
@Headers({
"Accept: application/json",
"Content-type:application/json"
})
@GET("/data/2.5/weather")
fun getWeatherForCityName(@Query("q") city: String, @... | https://stackoverflow.com/questions/49027140/retrofit-2-headers-error-in-kotlin | android, kotlin, retrofit2 | 1,519,813,260 |
se_53251647 | stackoverflow | MOBILE_DEVELOPMENT | Override getters in Kotlin? | Override getters in Kotlin?
So I have an abstract class Composition, which has two children: one is a Track, and one is an Album (which is a group of Tracks).
class Composition(val name: String, ...)
class Track(name: String): Composition(name)
class Album(name: String, val tracks: List<Track>): Composition(name)
S... | https://stackoverflow.com/questions/53251647/override-getters-in-kotlin | kotlin | 1,541,959,505 |
se_79939630 | stackoverflow | MOBILE_DEVELOPMENT | How to pass a custom Parcelable object in Jetpack Compose Type-Safe Navigation (Navigation 2.8.0+)? | How to pass a custom Parcelable object in Jetpack Compose Type-Safe Navigation (Navigation 2.8.0+)?
With the release of Jetpack Compose Navigation 2.8.0, we can now navigate using type-safe objects (@Serializable data classes) instead of route strings. However, if my route data class contains a custom Parcelable objec... | https://stackoverflow.com/questions/79939630/how-to-pass-a-custom-parcelable-object-in-jetpack-compose-type-safe-navigation | android, kotlin, android-jetpack-compose, android-navigation | 1,778,537,250 |
se_79940402 | stackoverflow | MOBILE_DEVELOPMENT | Can't implement ResultSetExtractor in Kotlin due to jspecify | Can't implement ResultSetExtractor in Kotlin due to jspecify
I can't have a class implement Spring's ResultSetExtractor in Kotlin, due to how Kotlin interprets T extends @Nullable in generics.
Using kotlin 2.3.21 and Spring 7.0.7.
import org.springframework.jdbc.core.ResultSetExtractor
import java.sql.ResultSet
... | https://stackoverflow.com/questions/79940402/cant-implement-resultsetextractor-in-kotlin-due-to-jspecify | kotlin, kotlin-null-safety, kotlin-interop | 1,778,664,526 |
se_79940585 | stackoverflow | MOBILE_DEVELOPMENT | NativeAdView.mediaView is val and cannot be reassigned in ads-mobile-sdk 1.0.1 | NativeAdView.mediaView is val and cannot be reassigned in ads-mobile-sdk 1.0.1
I am using the new Google Ads Mobile SDK:
implementation("com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk:1.0.1")
I am implementing Native Ads in Kotlin.
The headline, body, CTA, and icon are working correctly, but the MediaView... | https://stackoverflow.com/questions/79940585/nativeadview-mediaview-is-val-and-cannot-be-reassigned-in-ads-mobile-sdk-1-0-1 | android, kotlin, native-ads, google-mobile-ads | 1,778,682,711 |
se_79940030 | stackoverflow | MOBILE_DEVELOPMENT | Can't get rid of READ_CONTACTS with backward compatibility | Can't get rid of READ_CONTACTS with backward compatibility
My app needs email recipients for sending messages. Today I read all email addresses and ofder them in an auto-complete dialog. Now I wanted to upgrade Android SDK to API level 37 and follow the new google advise to remove READ_CONTACTS permission from her... | https://stackoverflow.com/questions/79940030/cant-get-rid-of-read-contacts-with-backward-compatibility | android, kotlin, android-contacts, contactpicker | 1,778,597,896 |
se_66393057 | stackoverflow | MOBILE_DEVELOPMENT | How could you do a Get Random to get images from a url? | How could you do a Get Random to get images from a url?
I am making an application and I want one of the Fragments to have an ImageView and the image to be taken from a URL that connects to my VPS. I would like you to tell me how can I take a random url from the img folder of the url https://imagerandom.com/img (that ... | https://stackoverflow.com/questions/66393057/how-could-you-do-a-get-random-to-get-images-from-a-url | android, kotlin, android-fragments, url, android-imageview | 1,614,375,158 |
se_79900961 | stackoverflow | MOBILE_DEVELOPMENT | How can I use Icons.Rounded.* in a KMP/CMP Projekt? | How can I use Icons.Rounded.* in a KMP/CMP Projekt?
I have the problem that I can't use Icons.Rounded.settings in my KMP/CMP project, even with the implementation and import. In all my Android projects before, it worked, but in CMP it doesn't. Does anyone know why and what I should do ?
implementation in build.gradle.... | https://stackoverflow.com/questions/79900961/how-can-i-use-icons-rounded-in-a-kmp-cmp-projekt | kotlin, cmp, kmp | 1,772,635,481 |
se_79938994 | stackoverflow | MOBILE_DEVELOPMENT | How to implement Hilt correctly? | How to implement Hilt correctly?
I implemented Hilt and got this error: [ksp] [Hilt] Expected @AndroidEntryPoint to have a value. Did you forget to apply the Gradle Plugin? (com.google.dagger.hilt.android) .
When try to implement it in the plugins I get the error: Plugin with id 'com.google.dagger.hilt.android' was al... | https://stackoverflow.com/questions/79938994/how-to-implement-hilt-correctly | android, kotlin, dagger-hilt | 1,778,431,437 |
se_79936432 | stackoverflow | MOBILE_DEVELOPMENT | How to implement and update a Room database correctly? | How to implement and update a Room database correctly?
I am programming a Counter App where the count is stored in a database. I am using Kotlin, Jetpack Compose, Room and Hilt. When I press the Button for increment, the count do not change. I tried to debug with Log.d(...) and always get this at Logcat no matter how ... | https://stackoverflow.com/questions/79936432/how-to-implement-and-update-a-room-database-correctly | android, kotlin, android-room, dagger-hilt | 1,777,984,459 |
se_63361130 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin, mapstruct and generated DTO error "does not have an accessible parameterless constructor." | Kotlin, mapstruct and generated DTO error "does not have an accessible parameterless constructor."
I am trying to use mapstruct to convert my complex dtos on my kotlin project.
mapstruct : 1.3.1.final
kotlin: 1.3.71
openapi generator: 4.2.3
For example, i want to convert from a simple object to TestObjectDTO... | https://stackoverflow.com/questions/63361130/kotlin-mapstruct-and-generated-dto-error-does-not-have-an-accessible-parameter | kotlin, mapstruct, openapi-generator | 1,597,158,630 |
se_79937347 | stackoverflow | MOBILE_DEVELOPMENT | Will Kotlin Multiplatform ever surpass React Native or Flutter? | Will Kotlin Multiplatform ever surpass React Native or Flutter?
I know Kotlin Multiplatform (KMP) is gaining popularity and is still in a growth phase. The real question is whether KMP will ever surpass React Native or Flutter in the future, especially in terms of community adoption, job opportunities, ecosystem matur... | https://stackoverflow.com/questions/79937347/will-kotlin-multiplatform-ever-surpass-react-native-or-flutter | android, flutter, react-native, kotlin, kotlin-multiplatform | 1,778,128,151 |
se_71912515 | stackoverflow | MOBILE_DEVELOPMENT | Spring Web-client: Basic Authentication Using Bearer token | Spring Web-client: Basic Authentication Using Bearer token
I am trying to to write a web-client where the Bearer token is attached to web-client call like OAUT2 mentioned here https://www.baeldung.com/spring-webclient-oauth2
Here is the flow.
First Call to get token:
Post:/auth/token
Request Body: form-url-encode ex: ... | https://stackoverflow.com/questions/71912515/spring-web-client-basic-authentication-using-bearer-token | spring, spring-boot, kotlin, spring-security, spring-webflux | 1,650,288,916 |
se_79938047 | stackoverflow | MOBILE_DEVELOPMENT | How to add a dependency / call another pre-compiled WASM module from a kotlin multiplatform projects web application? | How to add a dependency / call another pre-compiled WASM module from a kotlin multiplatform projects web application?
I am currently experimenting with kotlin multiplatform, to build an application in a desktop and web flavor. Some functionality is provided on desktop by another installed application, but it is not av... | https://stackoverflow.com/questions/79938047/how-to-add-a-dependency-call-another-pre-compiled-wasm-module-from-a-kotlin-mu | kotlin, webassembly, kotlin-multiplatform | 1,778,235,144 |
se_77251037 | stackoverflow | MOBILE_DEVELOPMENT | Jetpack Compose - Propagating Clicks to Lower UI Layers | Jetpack Compose - Propagating Clicks to Lower UI Layers
I'm working on creating an "onboarding" experience for my app, which is essentially a quick guide on how to use the application. To achieve this, I want the user to click where the app instructs them to. Specifically, I'd like to create a user interface with a ci... | https://stackoverflow.com/questions/77251037/jetpack-compose-propagating-clicks-to-lower-ui-layers | kotlin, android-jetpack-compose, android-jetpack, android-jetpack-compose-gesture | 1,696,703,663 |
se_50749777 | stackoverflow | MOBILE_DEVELOPMENT | How could I annotate both property and params for a constructor value? | How could I annotate both property and params for a constructor value?
I defined an annotation class for serialize/deserialize a model.
If I define PROPERTY as Target and
MyClass( @PropertyName("a_name") val name: String )
I can access annotations thought my class property but not thought my class constructor para... | https://stackoverflow.com/questions/50749777/how-could-i-annotate-both-property-and-params-for-a-constructor-value | reflection, kotlin, annotations | 1,528,403,695 |
se_79937488 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin/Java interop - Integer! not being autoconverted to Int? | Kotlin/Java interop - Integer! not being autoconverted to Int?
I have the following code:
fun extractWorkspaceId (token : String) : Int? = extractClaim(token) { it.get("ws", Integer::class.java) }
extractClaim is defined with the type fun <T> extractClaim (token : String, resolver : (Claims) -> T) : T, where Clai... | https://stackoverflow.com/questions/79937488/kotlin-java-interop-integer-not-being-autoconverted-to-int | kotlin, kotlin-java-interop | 1,778,146,968 |
se_56934677 | stackoverflow | MOBILE_DEVELOPMENT | How to tell that an extension method returns non-null if subject is not null | How to tell that an extension method returns non-null if subject is not null
I have implemented the following method:
private fun String?.replaceHolder(item: String): String? {
return this?.replace("\$deployUnit", item)
}
The code that is using it looks like that:
val a = "aaa".replaceHolder("fff")
However, th... | https://stackoverflow.com/questions/56934677/how-to-tell-that-an-extension-method-returns-non-null-if-subject-is-not-null | kotlin, type-inference | 1,562,587,903 |
se_79937448 | stackoverflow | MOBILE_DEVELOPMENT | DESFire EV3 changeKey() returns Integrity Error SW2=30 using TapLinx | DESFire EV3 changeKey() returns Integrity Error SW2=30 using TapLinx
private fun createApplication() {
val s = EV1ApplicationKeySettings.Builder()
.setAppMasterKeyChangeable(true)
.setAppKeySettingsChangeable(true)
.setAuthenticationRequiredForFileManagement(true)
... | https://stackoverflow.com/questions/79937448/desfire-ev3-changekey-returns-integrity-error-sw2-30-using-taplinx | android, kotlin, nfc, desfire, taplinx | 1,778,142,581 |
se_79935550 | stackoverflow | MOBILE_DEVELOPMENT | How to force a transparent status bar on Samsung in Kotlin Multiplatform | How to force a transparent status bar on Samsung in Kotlin Multiplatform
I developed an app with transparent system bars and it is correctly appearing transparent on my Pixel 7 and all virtual devices across many Android versions (7.0, 9.0, 14.0, 15.0, 16.0), but on a Samsung Galaxy S23 Ultra (Android 14) of a friend,... | https://stackoverflow.com/questions/79935550/how-to-force-a-transparent-status-bar-on-samsung-in-kotlin-multiplatform | android, kotlin, statusbar, transparent, samsung | 1,777,842,493 |
se_71884224 | stackoverflow | MOBILE_DEVELOPMENT | Determine Android device performance programmatically | Determine Android device performance programmatically
I want to run different lines of code for android devices with different performance. For example something like this:
if (isHighPerformanceDevice()) {
// run code for devices with high performance
} else if (isMediumPerformanceDevice()) {
// run code for d... | https://stackoverflow.com/questions/71884224/determine-android-device-performance-programmatically | java, android, performance, kotlin | 1,650,026,903 |
se_79861241 | stackoverflow | MOBILE_DEVELOPMENT | Why WebRTC is not 16 KB aligned? | Why WebRTC is not 16 KB aligned?
I am implementing video call in my Android app with the help of WebRTC, but while running the app in debug mode, I found this:
This issue is coming from the WebRTC library. I want to upload this app in playstore. What should I do? Is there any workaround available? | https://stackoverflow.com/questions/79861241/why-webrtc-is-not-16-kb-aligned | android, kotlin, webrtc, .so, 16kb-page-size | 1,767,663,667 |
se_67919707 | stackoverflow | MOBILE_DEVELOPMENT | Jetpack Compose: How to put a LazyVerticalGrid inside a scrollable Column? | Jetpack Compose: How to put a LazyVerticalGrid inside a scrollable Column?
When trying to put a LazyVerticalGrid inside a scrollable Column I get the following error:
java.lang.IllegalStateException: Nesting scrollable in the same
direction layouts like LazyColumn and
Column(Modifier.verticalScroll()) is not allowed.... | https://stackoverflow.com/questions/67919707/jetpack-compose-how-to-put-a-lazyverticalgrid-inside-a-scrollable-column | android, kotlin, android-jetpack-compose | 1,623,322,388 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.