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_79678552 | stackoverflow | MOBILE_DEVELOPMENT | Scroll the list to the bottom when the keyboard is fully shown in Compose | Scroll the list to the bottom when the keyboard is fully shown in Compose
How to scroll the list to the bottom when keyboard is shown in Compose? Now I have the following solution:
val isImeVisible = WindowInsets.isImeVisible
LaunchedEffect(isImeVisible) {
if (isImeVisible) {
coroutineScope.launch... | https://stackoverflow.com/questions/79678552/scroll-the-list-to-the-bottom-when-the-keyboard-is-fully-shown-in-compose | android, kotlin, android-jetpack-compose, ime, android-compose-layout | 1,750,833,036 |
se_79714956 | stackoverflow | MOBILE_DEVELOPMENT | How do I pass kotlinx @Serializable object as a back result in compose multiplatform | How do I pass kotlinx @Serializable object as a back result in compose multiplatform
According to release notes here SavedState now supprots kotlix.serialization. So I'm trying to lavarage it for navigation. It works as expected for nav args but when I'm trying to pas it as a result to the previous BackStackEntry it e... | https://stackoverflow.com/questions/79714956/how-do-i-pass-kotlinx-serializable-object-as-a-back-result-in-compose-multiplat | android, kotlin, android-jetpack-compose, multiplatform | 1,753,457,204 |
se_79732992 | stackoverflow | MOBILE_DEVELOPMENT | .gif Compose Multiplatform (Android & iOS) | .gif Compose Multiplatform (Android & iOS)
How can I display .gif images in Compose Multiplatform on Android and iOS?
Coil supports gifs only on Android
Using a native implementation with UIImageView on iOS doesn't work, since the gifs have a transparent background (& SnizzorsUIView displays it on top of everythi... | https://stackoverflow.com/questions/79732992/gif-compose-multiplatform-android-ios | android, ios, kotlin, gif, compose-multiplatform | 1,754,993,025 |
se_79746958 | stackoverflow | MOBILE_DEVELOPMENT | Is there a way to disable a visual transformation accessibility events from happening in compose | Is there a way to disable a visual transformation accessibility events from happening in compose
setup:
use provided code snippet
enable talkback
now go into the passwordField and type a letter for example 'a'.
Talkback will say: "a, a turned into bullet, bullet"
Is there a way to just have talkback say 'a'
code exa... | https://stackoverflow.com/questions/79746958/is-there-a-way-to-disable-a-visual-transformation-accessibility-events-from-happ | android, kotlin, android-jetpack-compose | 1,756,219,300 |
se_79769330 | stackoverflow | MOBILE_DEVELOPMENT | Change cluster icon in Mapbox compose for Android | Change cluster icon in Mapbox compose for Android
I would like to set a specific icon for my clusters in mapbox but I can't find how to do this in compose. I found some tutorials to do this in classic Java but can't find how to adapt it to the compose sdk.
Here is my current implementation
@Composable
private fun Map(... | https://stackoverflow.com/questions/79769330/change-cluster-icon-in-mapbox-compose-for-android | kotlin, android-jetpack-compose, mapbox, mapbox-android | 1,758,273,146 |
se_79808648 | stackoverflow | MOBILE_DEVELOPMENT | java.lang.NoSuchMethodError: No static method setContent$default | java.lang.NoSuchMethodError: No static method setContent$default
I have a multi-module Android project that was previously written in Java, with Gradle version 7.6.3 and AGP version 7.4.2. Now, I want to introduce Kotlin and Compose into one of the modules. I have configured the following in the build.gradle file at t... | https://stackoverflow.com/questions/79808648/java-lang-nosuchmethoderror-no-static-method-setcontentdefault | android, kotlin, android-jetpack-compose | 1,762,243,440 |
se_79811168 | stackoverflow | MOBILE_DEVELOPMENT | How to Fix Incomplete Web Styling in Compose WebView? | How to Fix Incomplete Web Styling in Compose WebView?
I'm developing an Android app with Jetpack Compose and planning to implement a built-in web browsing feature. Below is my basic code. I've found that my code works normally (both in styling and layout) when accessing most websites. However, when visiting m.bilibili... | https://stackoverflow.com/questions/79811168/how-to-fix-incomplete-web-styling-in-compose-webview | android, kotlin, webview, android-jetpack-compose | 1,762,425,847 |
se_44061143 | stackoverflow | MOBILE_DEVELOPMENT | Read CSV line-by-line in Kotlin | Read CSV line-by-line in Kotlin
I'm writing a simple import application and need to read a CSV file, show result in a grid and show corrupted lines of the CSV file in another grid.
Is there any built-in lib for it or any easy pythonic-like way?
I'm doing it on android. | https://stackoverflow.com/questions/44061143/read-csv-line-by-line-in-kotlin | android, csv, kotlin | 1,495,165,836 |
se_70162853 | stackoverflow | MOBILE_DEVELOPMENT | Google Autofill not offering to save password for Android Jetpack Compose Text Field | Google Autofill not offering to save password for Android Jetpack Compose Text Field
I had refactored a login flow from XML to Compose.
The old login flow, after logging in successfully, would have Google suggest to save your password.
However, since I refactored it, it doesn't do this anymore.
The old XML layout jus... | https://stackoverflow.com/questions/70162853/google-autofill-not-offering-to-save-password-for-android-jetpack-compose-text-f | android, kotlin, android-jetpack-compose, autofill | 1,638,231,723 |
se_79866372 | stackoverflow | MOBILE_DEVELOPMENT | False IDE Red imports in a fresh KMM project's commonMain module | False IDE Red imports in a fresh KMM project's commonMain module
STEPS TO REPRODUCE:
Setup a new KMM project from Android Studio template
Sync project, run it works fine.
Go to any file in commonMain module imports are red, even adding new dependencies are not resolving.
Tried Invalidating cace, removing .idea, ... | https://stackoverflow.com/questions/79866372/false-ide-red-imports-in-a-fresh-kmm-projects-commonmain-module | android, kotlin, kotlin-multiplatform | 1,768,241,732 |
se_79866003 | stackoverflow | MOBILE_DEVELOPMENT | Swipe moves to the last anchor even when finger not released from swipe control while dragging | Swipe moves to the last anchor even when finger not released from swipe control while dragging
I am trying to implement swipe control in my app, using the Compose BOM 2024.09.00.
Currently when swiping right, as soon as the threshold is reached - i.e. half of the swiping is done - the swipe control jumps to the extrem... | https://stackoverflow.com/questions/79866003/swipe-moves-to-the-last-anchor-even-when-finger-not-released-from-swipe-control | android, kotlin, android-jetpack-compose | 1,768,211,160 |
se_47005859 | stackoverflow | MOBILE_DEVELOPMENT | duplicate entry: META-INF/myLibrary.kotlin_module | duplicate entry: META-INF/myLibrary.kotlin_module
After updating to Android 3.0, getting Kotlin error:
Execution failed for task ':myLibrary:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug'.
> java.lang.RuntimeException: java.util.zip.ZipException: duplicate entry: META-INF/myLibrary.kotlin_module
T... | https://stackoverflow.com/questions/47005859/duplicate-entry-meta-inf-mylibrary-kotlin-module | android, gradle, kotlin | 1,509,315,704 |
se_71262492 | stackoverflow | MOBILE_DEVELOPMENT | Spring R2DBC Repos auto configuration not resolving dependencies | Spring R2DBC Repos auto configuration not resolving dependencies
I Have the following repository: https://github.com/vlio20/bfit in which I try to use R2DBC in order to do db operations in an async manner.
I followed the following tutorial (but maybe it is outdated https://www.youtube.com/watch?v=DvO4zLVDkMs
Here are ... | https://stackoverflow.com/questions/71262492/spring-r2dbc-repos-auto-configuration-not-resolving-dependencies | java, spring, spring-boot, kotlin | 1,645,774,463 |
se_79388825 | stackoverflow | MOBILE_DEVELOPMENT | Creating a compose navigation scoped Repository? | Creating a compose navigation scoped Repository?
I'm building an Android app with Kotlin, Jetpack Compose, and Hilt for dependency injection. My app has a KYC flow that spans about 10 screens(has own navigation graph of this flow), each with its own ViewModel. I'm collecting user data in these screens (e.g., ID detail... | https://stackoverflow.com/questions/79388825/creating-a-compose-navigation-scoped-repository | kotlin, android-jetpack-compose, dagger-hilt, android-jetpack-compose-navigation | 1,737,907,195 |
se_79862091 | stackoverflow | MOBILE_DEVELOPMENT | Why my increment operation is atomic in multithread context? | Why my increment operation is atomic in multithread context?
I'm trying to increment 2 times by 1000 times the shared counter
import kotlin.concurrent.thread
class MultiThreads {
var counter = 0
fun main(){
val thread1 = thread {
(1..1000).forEach { _ ->
counter++
... | https://stackoverflow.com/questions/79862091/why-my-increment-operation-is-atomic-in-multithread-context | java, multithreading, kotlin | 1,767,761,313 |
se_79864715 | stackoverflow | MOBILE_DEVELOPMENT | ksp2 plugin not found | ksp2 plugin not found
currently I am using KSP1 in my project and it works fine - now wanting to use KSP2 - but always get an error like this:
* What went wrong:
Plugin [id: 'com.google.devtools.ksp', version: '2.3.3-2.3.3'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.g... | https://stackoverflow.com/questions/79864715/ksp2-plugin-not-found | kotlin, gradle, ksp | 1,768,001,393 |
se_79864448 | stackoverflow | MOBILE_DEVELOPMENT | ReAct strategy in Koog Agent - no assistant output | ReAct strategy in Koog Agent - no assistant output
I’m building a Koog agent graph strategy in Kotlin that wraps a reActStrategy inside my own custom strategy. I also expose tools (API endpoints) for the ReAct loop to call.
The issue: the agent never produces a final response (my strategy completes, but I don’t get a ... | https://stackoverflow.com/questions/79864448/react-strategy-in-koog-agent-no-assistant-output | kotlin, koog | 1,767,973,879 |
se_68268194 | stackoverflow | MOBILE_DEVELOPMENT | What do I use now that Anko is deprecated? | What do I use now that Anko is deprecated?
How do I fix the deprecation warning in this code? Alternatively, are there any other options for doing this?
runOnUiThread {
doAsync {
// room insert query
}
}
// anko Commons
implementation "org.jetbrains.anko:anko-commons:0.10.8" | https://stackoverflow.com/questions/68268194/what-do-i-use-now-that-anko-is-deprecated | android, kotlin, anko, anko-component | 1,625,564,729 |
se_78635448 | stackoverflow | MOBILE_DEVELOPMENT | How to launch Android Gemini app with an initial query | How to launch Android Gemini app with an initial query
From my app, I'd like to be able to launch the new Google Gemini android app (as installed from the app store) and provide an initial query/question. I'm currently able to launch the app, but I can't find any information on if there is an intent extra that is supp... | https://stackoverflow.com/questions/78635448/how-to-launch-android-gemini-app-with-an-initial-query | android, kotlin, google-gemini | 1,718,683,675 |
se_71185137 | stackoverflow | MOBILE_DEVELOPMENT | Classes in bundle 'app' do not match with execution data. For report generation the same class files must be used as at runtime | Classes in bundle 'app' do not match with execution data. For report generation the same class files must be used as at runtime
Task :app:jacocoTestReport
[ant:jacocoReport] Classes in bundle 'app' do not match with execution data. For report generation the same class files must be used as at runtime.
[ant:jac... | https://stackoverflow.com/questions/71185137/classes-in-bundle-app-do-not-match-with-execution-data-for-report-generation | android, kotlin, gradle, jacoco | 1,645,274,867 |
se_78847171 | stackoverflow | MOBILE_DEVELOPMENT | Error with Dagger Hilt in Android Project: Unable to process HiltComponents.SingletonC | Error with Dagger Hilt in Android Project: Unable to process HiltComponents.SingletonC
I am working on an Android project that hasn't been touched in some time. The previous developer left a few years ago and did not leave any documentation. I have looked through the Hilt dependency documentation and can not find what... | https://stackoverflow.com/questions/78847171/error-with-dagger-hilt-in-android-project-unable-to-process-hiltcomponents-sing | android, kotlin, dagger, dagger-hilt | 1,723,103,825 |
se_79863599 | stackoverflow | MOBILE_DEVELOPMENT | I can't launch the app because of the TextField element | I can't launch the app because of the TextField element
I'm trying to work in practice with the TextField markup element, but at the moment I'm facing such a problem that when using the onValueChange parameter, I get an error. Here is the full function code, and screenshots of the error
@Composable
fun Information... | https://stackoverflow.com/questions/79863599/i-cant-launch-the-app-because-of-the-textfield-element | android, kotlin, android-jetpack-compose | 1,767,894,666 |
se_64984549 | stackoverflow | MOBILE_DEVELOPMENT | Android Studio stuck at "Analyzing..." | Android Studio stuck at "Analyzing..."
In my Android project (Android 4.2 Canary 15), completion does not work anymore, and neither does syntax highlighting. This is happening in one Android project only (the others work well).
I have tried to clean, rebuild the project, create a new project and import file... | https://stackoverflow.com/questions/64984549/android-studio-stuck-at-analyzing | android-studio, kotlin | 1,606,213,722 |
se_72340267 | stackoverflow | MOBILE_DEVELOPMENT | How to fix the error "There are multiple DataStores active" | How to fix the error "There are multiple DataStores active"
I have an error in the project. When I use the DataStore on my project then I get an error.
I do not intend to create several datastore for my project. I do want to create a datastore for it but when running the project I get an error
and I found ma... | https://stackoverflow.com/questions/72340267/how-to-fix-the-error-there-are-multiple-datastores-active | java, android, kotlin, datastore | 1,653,243,960 |
se_73261622 | stackoverflow | MOBILE_DEVELOPMENT | Can't compile Kotlin Jackson Extensions readValue(File) | Can't compile Kotlin Jackson Extensions readValue(File)
I am trying to use Kotlin Jackson extensions to do JSON conversions in my code. But for some reason, I am getting a syntax error when trying to use the readValue(File) function.
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3'
---
im... | https://stackoverflow.com/questions/73261622/cant-compile-kotlin-jackson-extensions-readvaluefile | kotlin, jackson | 1,659,804,421 |
se_79859904 | stackoverflow | MOBILE_DEVELOPMENT | How to announce page context ("Page X of Y") in HorizontalPager in Jetpack Compose with a11y? | How to announce page context ("Page X of Y") in HorizontalPager in Jetpack Compose with a11y?
I am building a custom selector component in Jetpack Compose. It consists of a HorizontalPager where each page contains a LazyVerticalGrid of selectable items (acting like Radio Buttons).
The problem: When a blind u... | https://stackoverflow.com/questions/79859904/how-to-announce-page-context-page-x-of-y-in-horizontalpager-in-jetpack-compo | android, kotlin, android-jetpack-compose, accessibility, android-a11y | 1,767,482,557 |
se_79862965 | stackoverflow | MOBILE_DEVELOPMENT | B2C returns com.microsoft.identity.client.exception.MsalClientException: Missing required tokens of type: access_token | B2C returns com.microsoft.identity.client.exception.MsalClientException: Missing required tokens of type: access_token
I am trying to implement Azure AD B2C authentication in my application using MSAL.
I am requesting the following scopes:
openid
offline_access
I only need the ID token for authentication purposes ... | https://stackoverflow.com/questions/79862965/b2c-returns-com-microsoft-identity-client-exception-msalclientexception-missing | android, kotlin, azure-ad-b2c, access-token, azure-ad-msal | 1,767,849,621 |
se_51680008 | stackoverflow | MOBILE_DEVELOPMENT | How to mock Android `Tasks.await()`? | How to mock Android `Tasks.await()`?
So I'm writing a method to unit test an interaction with Firebase auth - I've managed to mock everything else needed successfully, but I'm not sure how to mock a call in the method under test to Tasks.await(someTask).someValue
Because Tasks.await() is static, I can't really mock i... | https://stackoverflow.com/questions/51680008/how-to-mock-android-tasks-await | android, unit-testing, kotlin, mockito, task | 1,533,329,820 |
se_79862132 | stackoverflow | MOBILE_DEVELOPMENT | Screen transition effect, which shows underlying screen | Screen transition effect, which shows underlying screen
I am trying to replicate a screen transition effect in Compose, similar to the one used in Poweramp's UI (swiping from the edge to reveal the previous screen which simultaneously scales in the background).
I have implemented the custom edge-swipe gesture detecti... | https://stackoverflow.com/questions/79862132/screen-transition-effect-which-shows-underlying-screen | android, kotlin, android-jetpack-compose | 1,767,766,132 |
se_79608623 | stackoverflow | MOBILE_DEVELOPMENT | Jakarta Bean Validation not working on collection elements | Jakarta Bean Validation not working on collection elements
In my project Spring Boot 3.3.x with Hibernate Validator 8.x and the validation of element list doesn't work. Tell me why?
import jakarta.validation.Valid
import jakarta.validation.Validation
import jakarta.validation.constraints.NotNull
import org.assertj.cor... | https://stackoverflow.com/questions/79608623/jakarta-bean-validation-not-working-on-collection-elements | kotlin, bean-validation, hibernate-validator, jakarta-validation | 1,746,531,359 |
se_68398248 | stackoverflow | MOBILE_DEVELOPMENT | How to create a polling mechanism with kotlin coroutines? | How to create a polling mechanism with kotlin coroutines?
I am trying to create a polling mechanism with kotlin coroutines using sharedFlow and want to stop when there are no subscribers and active when there is at least one subscriber. My question is, is sharedFlow the right choice in this scenario or should I use ch... | https://stackoverflow.com/questions/68398248/how-to-create-a-polling-mechanism-with-kotlin-coroutines | kotlin, kotlin-coroutines, kotlin-sharedflow | 1,626,369,727 |
se_79859309 | stackoverflow | MOBILE_DEVELOPMENT | How to create a programmatic list of lists | How to create a programmatic list of lists
My code loops through rows in SQLite and builds text views / image views to add to linear layouts and displays on screen. My users add fabric manually so each entry would be very different across devices.
However when attempting to look at how to update the constraints so tha... | https://stackoverflow.com/questions/79859309/how-to-create-a-programmatic-list-of-lists | android, kotlin | 1,767,373,826 |
se_79855932 | stackoverflow | MOBILE_DEVELOPMENT | Can't capture every emittion from StateFlow when testing with Turbine | Can't capture every emittion from StateFlow when testing with Turbine
I'm trying to test my viewmodels that exposes a public StateFlow via stateIn operator:
class HomeViewModel @Inject constructor(...) : ViewModel() {
private val _uiState: MutableStateFlow<State> =
MutableStateFlow(createInitialState(... | https://stackoverflow.com/questions/79855932/cant-capture-every-emittion-from-stateflow-when-testing-with-turbine | android, kotlin, unit-testing, kotlin-flow, turbine | 1,766,862,466 |
se_74621191 | stackoverflow | MOBILE_DEVELOPMENT | How can I disable the horizontal stretching/overscroll when using the `verticalScroll` modifier? | How can I disable the horizontal stretching/overscroll when using the `verticalScroll` modifier?
I want a scrollable view which I'm doing by using the verticalScroll modifier on a column.
Column(modifier = Modifier.verticalScroll(rememberScrollState())) {
// ... I could provide more detail about the contents here... | https://stackoverflow.com/questions/74621191/how-can-i-disable-the-horizontal-stretching-overscroll-when-using-the-verticals | android, kotlin, android-jetpack-compose, scrollable, overscroll | 1,669,762,988 |
se_79847334 | stackoverflow | MOBILE_DEVELOPMENT | How can I get a response from Google's Play Age Signals API before January 1, 2026? | How can I get a response from Google's Play Age Signals API before January 1, 2026?
I am working on a Kotlin app in Android Studio and trying to implement Google's Play Age Signals API to gate our purchasing path to users who are 18 and up ahead of the upcoming age verification laws in Texas that are set to go liv... | https://stackoverflow.com/questions/79847334/how-can-i-get-a-response-from-googles-play-age-signals-api-before-january-1-20 | android, kotlin, google-play-services | 1,765,761,799 |
se_75850056 | stackoverflow | MOBILE_DEVELOPMENT | Scanning BLE devices on Android : Kotlin | Scanning BLE devices on Android : Kotlin
.
Hi! I am trying to scan BLE devices with my app but I have been unable to find any. The idea was to start an scan and find my nearby devices, which would be printed on the logcat of Android Studio. The scan starts without any problem but it is unable to find any BLE device. I... | https://stackoverflow.com/questions/75850056/scanning-ble-devices-on-android-kotlin | android, kotlin, bluetooth-lowenergy | 1,679,858,802 |
se_77209750 | stackoverflow | MOBILE_DEVELOPMENT | Open Activity When FCM notification received without user interaction | Open Activity When FCM notification received without user interaction
I am working on a project. The project requirement is that, when FCM notification arrives a specific activity opens without user interaction. This means I don't want to open the activity by notification clicking instead I want to open the activity a... | https://stackoverflow.com/questions/77209750/open-activity-when-fcm-notification-received-without-user-interaction | android, firebase, kotlin, firebase-cloud-messaging | 1,696,148,746 |
se_79860348 | stackoverflow | MOBILE_DEVELOPMENT | Compose crashes with "class [...] cannot be cast to class [...]" when switching between two types that inherit from the same class | Compose crashes with "class [...] cannot be cast to class [...]" when switching between two types that inherit from the same class
This bug requires some setup but I tried to reduce it as much as possible.
The app
I'm working on a compose desktop app that has different "modes". Each mode has its own UI and b... | https://stackoverflow.com/questions/79860348/compose-crashes-with-class-cannot-be-cast-to-class-when-switching | android, kotlin, mvvm, android-jetpack-compose, kotlin-multiplatform | 1,767,557,074 |
se_79007177 | stackoverflow | MOBILE_DEVELOPMENT | Calling native Swift function from Kotlin Multiplatform shared code | Calling native Swift function from Kotlin Multiplatform shared code
I'm trying to implement Firebase Cloud Messaging on a Kotlin Multiplatform project. Everything is going great except for the iOS part.
I have some shared code:
expect suspend fun getFCMToken(): String?;
And in the Android project, I use actual for a ... | https://stackoverflow.com/questions/79007177/calling-native-swift-function-from-kotlin-multiplatform-shared-code | ios, swift, kotlin, kotlin-multiplatform, kmp | 1,726,842,311 |
se_58799779 | stackoverflow | MOBILE_DEVELOPMENT | Uncaught TypeError: Cannot read property 'create' of undefined while writing Kotlin Wrapper for matter.js | Uncaught TypeError: Cannot read property 'create' of undefined while writing Kotlin Wrapper for matter.js
I want to use matter.js in one of my kotlin/JS projects. For doing this, I use a wrapper with external references to the matter.js classes. A test file to reproduce the error is here:
package engineEmi
im... | https://stackoverflow.com/questions/58799779/uncaught-typeerror-cannot-read-property-create-of-undefined-while-writing-kot | javascript, kotlin, matter.js | 1,573,468,803 |
se_79859781 | stackoverflow | MOBILE_DEVELOPMENT | How to correctly parse a WAV file for use with Android TTS | How to correctly parse a WAV file for use with Android TTS
I am trying to create a TTS engine for a TTS service i have running locally on my network.
I used an AI to generate the basics and set up the engine with the android system. But i am not able to get the TTS to work fine when using it to read a text in a book r... | https://stackoverflow.com/questions/79859781/how-to-correctly-parse-a-wav-file-for-use-with-android-tts | android, kotlin, text-to-speech | 1,767,456,870 |
se_79853811 | stackoverflow | MOBILE_DEVELOPMENT | How to get UserHandle? for the work apps user in Kotlin before SDK 30? | How to get UserHandle? for the work apps user in Kotlin before SDK 30?
I am trying to access the UserHandle of the Work Profile on android for my launcher app so I can display work apps. I cannot find a way of doing this before Android 15 (SDK 30) but I need it to work on Android 8 (SDK 26). Work Profiles were added i... | https://stackoverflow.com/questions/79853811/how-to-get-userhandle-for-the-work-apps-user-in-kotlin-before-sdk-30 | android, kotlin, android-work-profile | 1,766,505,562 |
se_68244362 | stackoverflow | MOBILE_DEVELOPMENT | Select all text of TextField in Jetpack Compose | Select all text of TextField in Jetpack Compose
I'm using TextField component in Jetpack Compose.
How to select all text when it receive focus? | https://stackoverflow.com/questions/68244362/select-all-text-of-textfield-in-jetpack-compose | kotlin, textfield, android-jetpack-compose | 1,625,398,871 |
se_54370415 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin coroutine future await with timeout (no cancellation) | Kotlin coroutine future await with timeout (no cancellation)
Given we have a CompletableFuture f, in kotlin suspendable scope we can call f.await() and we will suspend until it's done.
I'm having trouble implementing a similar function with signature f.await(t) which must suspend for maximum t milliseconds or return s... | https://stackoverflow.com/questions/54370415/kotlin-coroutine-future-await-with-timeout-no-cancellation | java, kotlin, kotlin-coroutines, coroutine, completable-future | 1,548,438,429 |
se_79859350 | stackoverflow | MOBILE_DEVELOPMENT | build.gradle for a multi-module application | build.gradle for a multi-module application
I'm a beginner. I study through video tutorials.
We are writing a multi-module Android application. To use the same dependencies in different modules, a separate folder build.src is created in the root of the application with the files build.gradle and build.settings.
In the... | https://stackoverflow.com/questions/79859350/build-gradle-for-a-multi-module-application | kotlin, android-studio | 1,767,377,588 |
se_57641734 | stackoverflow | MOBILE_DEVELOPMENT | How to apply overridden class on EditText | How to apply overridden class on EditText
I found some code in Stack Overflow, and I want to use that code in my app.
I have already overridden the EditText class(NoMenuEditText) like it is via the link below.
What should I do now with that overridden class?
I have EditText with id EditTextUserTask, how can I apply No... | https://stackoverflow.com/questions/57641734/how-to-apply-overridden-class-on-edittext | android, kotlin | 1,566,682,995 |
se_61546796 | stackoverflow | MOBILE_DEVELOPMENT | Android Studio MediaStore Storage can't access the folder | Android Studio MediaStore Storage can't access the folder
When trying to download and save a file, it throws an error
Primary directory file not allowed for content://media/external/downloads;
allowed directories are [Download]
How can I fix it, maybe there is no permission?
val multipartBuilder = MultipartBod... | https://stackoverflow.com/questions/61546796/android-studio-mediastore-storage-cant-access-the-folder | android, kotlin | 1,588,351,473 |
se_70344761 | stackoverflow | MOBILE_DEVELOPMENT | Is it possible that I can open or configure ktor project in android studio | Is it possible that I can open or configure ktor project in android studio
I want to open ktor project in android studio so is there any plugin available in android studio to open ktor project.
Thank you. | https://stackoverflow.com/questions/70344761/is-it-possible-that-i-can-open-or-configure-ktor-project-in-android-studio | android-studio, kotlin, ktor | 1,639,464,733 |
se_79848598 | stackoverflow | MOBILE_DEVELOPMENT | Can not exit Extractmode cleanly like WhatsApp or Messenger. Having a choppy transition | Can not exit Extractmode cleanly like WhatsApp or Messenger. Having a choppy transition
I am building a chat app for learning android dev using Kotlin and Jetpack Compose. I am trying to exit extractmode (Landscape + KeyboardVisible) smoothly. But having a keyboad going down and textfield row taking available space an... | https://stackoverflow.com/questions/79848598/can-not-exit-extractmode-cleanly-like-whatsapp-or-messenger-having-a-choppy-tra | android, kotlin, android-jetpack-compose | 1,765,893,795 |
se_69767508 | stackoverflow | MOBILE_DEVELOPMENT | Import Android Context into a function file in Kotlin | Import Android Context into a function file in Kotlin
I try to create a POST request with Android Volley but when I type volleyRequestQueue = Volley.newRequestQueue(this), this is a error "this is not defined in this context".
I know that I have this problem because my function can't resolve Android Context but I don'... | https://stackoverflow.com/questions/69767508/import-android-context-into-a-function-file-in-kotlin | android, kotlin, android-volley, android-context | 1,635,504,035 |
se_79858505 | stackoverflow | MOBILE_DEVELOPMENT | How to handle close (X) button action in PiP mode? | How to handle close (X) button action in PiP mode?
I'm developing an Android application using Jetpack Compose. I have a screen with a video player that supports Picture-in-Picture (PiP) mode. Entering PiP works correctly and the video continues playing as expected.
However, I'm facing an issue with the close (X) butt... | https://stackoverflow.com/questions/79858505/how-to-handle-close-x-button-action-in-pip-mode | kotlin, android-jetpack-compose, android-picture-in-picture | 1,767,253,269 |
se_79857436 | stackoverflow | MOBILE_DEVELOPMENT | How do you create video feeds with poster in Kotlin Multiplatform? | How do you create video feeds with poster in Kotlin Multiplatform?
I’m developing a Kotlin Multiplatform application using Compose Multiplatform. I’m consuming an API that returns a list of images and videos, and for each video I want to display a static poster image before playback starts (similar to a video thumbnai... | https://stackoverflow.com/questions/79857436/how-do-you-create-video-feeds-with-poster-in-kotlin-multiplatform | android, kotlin, user-interface, kotlin-coroutines, kotlin-multiplatform | 1,767,092,473 |
se_79774121 | stackoverflow | MOBILE_DEVELOPMENT | Is a Kotlin coroutine Job's status reliable for concurrency control? | Is a Kotlin coroutine Job's status reliable for concurrency control?
I've read this sentence in the Java Concurrency in Practice book that:
The result of Thread.getState should not be used for concurrency
control, and is of limited usefulness for testing—its primary utility
is as a source of debugging information... | https://stackoverflow.com/questions/79774121/is-a-kotlin-coroutine-jobs-status-reliable-for-concurrency-control | kotlin, kotlin-coroutines | 1,758,744,077 |
se_79858985 | stackoverflow | MOBILE_DEVELOPMENT | How can I group routes with Spring? | How can I group routes with Spring?
The given project is not using the standard controller way, it's more like 1 handler per controller ( CQRS like )
Each API route should start with the prefix /api
Command routes should follow with /command
A single controller handler should pass in the command name ( /do-it ) and ... | https://stackoverflow.com/questions/79858985/how-can-i-group-routes-with-spring | java, spring, spring-boot, kotlin | 1,767,338,836 |
se_79857836 | stackoverflow | MOBILE_DEVELOPMENT | Android to WearOS data event fails when phone app is closed | Android to WearOS data event fails when phone app is closed
I'm trying to set up an authentication flow on a WearOS app where the companion phone app is responsible for logging in at which point the watch app can simply request the authentication token via a data event. This works just fine when both apps are open, bu... | https://stackoverflow.com/questions/79857836/android-to-wearos-data-event-fails-when-phone-app-is-closed | android, kotlin, wear-os | 1,767,131,960 |
se_63828071 | stackoverflow | MOBILE_DEVELOPMENT | Convert CompletableFuture to Coroutine | Convert CompletableFuture to Coroutine
I am a newbie in Kotlin world and would like to know, if it is possible to convert CompletableFuture to Coroutine or how to use togheter.
Why I would like to do that, because all methods of AsyncCrudRepository returns CompletableFuture. | https://stackoverflow.com/questions/63828071/convert-completablefuture-to-coroutine | kotlin, kotlin-coroutines | 1,599,734,885 |
se_79857932 | stackoverflow | MOBILE_DEVELOPMENT | Getting "None of the following candidates is applicable" when trying to use LiveData list in itemsIndexed in LazyColumn | Getting "None of the following candidates is applicable" when trying to use LiveData list in itemsIndexed in LazyColumn
Relvant code in ViewModel:
val allFoods: LiveData<List<Food>> = repository.allFoods.asLiveData()
and MainActivity:
val foods = foodViewModel.allFoods.observeAsState(listOf())
... | https://stackoverflow.com/questions/79857932/getting-none-of-the-following-candidates-is-applicable-when-trying-to-use-live | android, kotlin, android-jetpack-compose, viewmodel, android-livedata | 1,767,150,333 |
se_44197521 | stackoverflow | MOBILE_DEVELOPMENT | Gradle Project: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics | Gradle Project: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
I'm working on a Java project and within this project I did my first try with Kotlin. I started converting some classes to Kotlin with the JavaToKoltin converter provided in Intellij Idea. Among others, my custom exceptions are now converte... | https://stackoverflow.com/questions/44197521/gradle-project-java-lang-noclassdeffounderror-kotlin-jvm-internal-intrinsics | java, kotlin, exception, gradle | 1,495,789,014 |
se_79857299 | stackoverflow | MOBILE_DEVELOPMENT | TagLib reading slows down after ~1600 items | TagLib reading slows down after ~1600 items
I have an app getting metadata from a list of songs using TagLib.
It first gets the song id via MediaStore, and send fd to TagLib which dups it and uses it to open a stream to get the metadata and audio properties.
This returns a map of <String, Array<String>> and an IntArra... | https://stackoverflow.com/questions/79857299/taglib-reading-slows-down-after-1600-items | android, performance, kotlin | 1,767,076,541 |
se_79857829 | stackoverflow | MOBILE_DEVELOPMENT | Value classes as varargs in Kotlin | Value classes as varargs in Kotlin
I just wanted to write an simple function, that takes multiple kotlin.time.Durations as vararg and wondered about the compiler error:
fun foo(vararg durations: kotlin.time.Duration) {
//...
}
The compiler error is Prohibited vararg parameter type 'Duration'.
Any other class worke... | https://stackoverflow.com/questions/79857829/value-classes-as-varargs-in-kotlin | kotlin | 1,767,131,418 |
se_70419206 | stackoverflow | MOBILE_DEVELOPMENT | How to clear focus of BasicTextField upon clicking somewhere else in Compose Multiplatform? | How to clear focus of BasicTextField upon clicking somewhere else in Compose Multiplatform?
I have a BasicTextField in Jetbrains Compose Multiplatform for desktop. When I click on it, the TextField gets focus and becomes editable. However, when I click somewhere else in my application, the focus is not lost and the fi... | https://stackoverflow.com/questions/70419206/how-to-clear-focus-of-basictextfield-upon-clicking-somewhere-else-in-compose-mul | kotlin, android-jetpack-compose, jetbrains-compose, compose-multiplatform | 1,639,989,415 |
se_79856778 | stackoverflow | MOBILE_DEVELOPMENT | :kotlinWasmNpmInstall and :kotlinNpmInstall can't proceed to find dependencies | :kotlinWasmNpmInstall and :kotlinNpmInstall can't proceed to find dependencies
After setting up my project with Compose Multiplatform Wizard, I successfully ran the desktop version, but had issue with the web version.
When I try to run :kotlinWasmNpmInstall and :kotlinNpmInstall, A package resolution issue occurs.... | https://stackoverflow.com/questions/79856778/kotlinwasmnpminstall-and-kotlinnpminstall-cant-proceed-to-find-dependencies | kotlin, compose-multiplatform | 1,767,011,258 |
se_79803752 | stackoverflow | MOBILE_DEVELOPMENT | Retrieve the base plan bought from queryPurchasesAsync Billing Library V8 | Retrieve the base plan bought from queryPurchasesAsync Billing Library V8
I am using Kotlin Google Play Billing Library 8 to query the subscriptions already bought by the user. I can get purchaseToken and subscription ProductId, BUT unfortunately there is no information about the base plan (or offer) that is bought by... | https://stackoverflow.com/questions/79803752/retrieve-the-base-plan-bought-from-querypurchasesasync-billing-library-v8 | kotlin, in-app-billing | 1,761,738,411 |
se_79856263 | stackoverflow | MOBILE_DEVELOPMENT | DDD Aggregate Root in Kotlin: data class + copy() vs regular class? | DDD Aggregate Root in Kotlin: data class + copy() vs regular class?
I’m designing a DDD Aggregate Root in Kotlin and I’m unsure which approach is more appropriate in practice.
I’ve seen two common styles:
Immutable aggregate using data class + copy()
Shown in the official JetBrains DDD article https://blog.jetbrains.... | https://stackoverflow.com/questions/79856263/ddd-aggregate-root-in-kotlin-data-class-copy-vs-regular-class | kotlin, aggregate, domain-driven-design | 1,766,936,685 |
se_78116643 | stackoverflow | MOBILE_DEVELOPMENT | Incompatible version (AGP 8.3.0) of the Android Gradle plugin | Incompatible version (AGP 8.3.0) of the Android Gradle plugin
I am currently on Android Studio Hedgehog | 2023.1.1 Patch 1 and I get this issue trying to compile the general project I am working on with this error
The project is using an incompatible version (AGP 8.3.0) of the Android Gradle plugin. Latest supported ... | https://stackoverflow.com/questions/78116643/incompatible-version-agp-8-3-0-of-the-android-gradle-plugin | android, kotlin, gradle | 1,709,749,751 |
se_79807446 | stackoverflow | MOBILE_DEVELOPMENT | How can I return a result from a Room database in a thread-safe way? | How can I return a result from a Room database in a thread-safe way?
I want to implement a query that returns a result. Android requires that this type of query occurs on a separate thread to avoid locking up the UI thread.
My code is based on the tutorial https://iifx.dev/en/articles/457770601/implementing-room-datab... | https://stackoverflow.com/questions/79807446/how-can-i-return-a-result-from-a-room-database-in-a-thread-safe-way | android, kotlin, android-jetpack-compose, android-room, kotlin-flow | 1,762,127,738 |
se_79837083 | stackoverflow | MOBILE_DEVELOPMENT | Android Compose ScrollView Not Scrolling to Bottom When Keyboard Appears? | Android Compose ScrollView Not Scrolling to Bottom When Keyboard Appears?
I'm working on a login screen using Jetpack Compose and I'm trying to implement automatic scrolling to ensure the last button ("Log in without password") is visible when the keyboard appears.
I'm using a Scaffold with a Column containing my inpu... | https://stackoverflow.com/questions/79837083/android-compose-scrollview-not-scrolling-to-bottom-when-keyboard-appears | android, kotlin, android-jetpack-compose, android-jetpack-compose-scaffold, jetpack-compose-column | 1,764,777,791 |
se_75254273 | stackoverflow | MOBILE_DEVELOPMENT | How to search paried devices Kotlin Android App | How to search paried devices Kotlin Android App
I am attempting to create an Android app to connect to a HC-05 Bluetooth module. I am going through the Android documentation, however, following the documentation I am receiving an error that I can not work around. I do not understand how to the list of bonded devices.
... | https://stackoverflow.com/questions/75254273/how-to-search-paried-devices-kotlin-android-app | android, kotlin, android-bluetooth | 1,674,795,908 |
se_55488291 | stackoverflow | MOBILE_DEVELOPMENT | How to add an item to a list in Kotlin? | How to add an item to a list in Kotlin?
I'm trying to add an element list to the list of string, but I found Kotlin does not have an add function like Java. How can I add the items to the list?
class RetrofitKotlin : AppCompatActivity() {
var listofVechile:List<Message>?=null
var listofVechileName:List<String... | https://stackoverflow.com/questions/55488291/how-to-add-an-item-to-a-list-in-kotlin | list, kotlin, collections, kotlin-android-extensions | 1,554,272,319 |
se_79853602 | stackoverflow | MOBILE_DEVELOPMENT | Debug-only asserts in Kotlin | Debug-only asserts in Kotlin
Does Kotlin have a proper "debug-only" kind of assertion, or how best to make one? As in: an assertion statement that can be effectively eliminated by build flags or runtime flags.
Kotlin's current assert function appears to resemble Java's assert keyword, but doesn't, according to a relat... | https://stackoverflow.com/questions/79853602/debug-only-asserts-in-kotlin | kotlin, assert | 1,766,488,916 |
se_79844575 | stackoverflow | MOBILE_DEVELOPMENT | Why The singleton in KMP is two different instances in iOS and Kotlin Mutliple Platform | Why The singleton in KMP is two different instances in iOS and Kotlin Mutliple Platform
I got an object(singleton) in kotlin Multiple platform(KMP)
Like:
object SqIOSApiRegister {
private var initialized = false
val lock = NSLock()
init {
if (initialized) {
println("wwq ⚠️ ALREADY INI... | https://stackoverflow.com/questions/79844575/why-the-singleton-in-kmp-is-two-different-instances-in-ios-and-kotlin-mutliple-p | swift, kotlin, cocoapods | 1,765,516,217 |
se_60558606 | stackoverflow | MOBILE_DEVELOPMENT | Differentiate QRCode and QRCode's Screenshot / Image using QRCode Reader | Differentiate QRCode and QRCode's Screenshot / Image using QRCode Reader
I am using QRCodeReaderView library to scan a QRCode. Everything is working perfect like reading QRCode and getting values.
I did the majors to avoid things such as capturing or screenshooting a QRCode, but there's still a thread that one ca... | https://stackoverflow.com/questions/60558606/differentiate-qrcode-and-qrcodes-screenshot-image-using-qrcode-reader | java, android, swift, kotlin, swift5 | 1,583,475,815 |
se_64652057 | stackoverflow | MOBILE_DEVELOPMENT | Parse RSS XML with Kotlin | Parse RSS XML with Kotlin
This is my data class of Kotlin. I'd like to parse RSS but I got a message like 'item' does not have a match in class...
@Root(name = "channel", strict = false)
data class ArticleList(
@ElementList(name = "item", inline = true)
val articleList: List<Article>
)
@Root(name = "item", st... | https://stackoverflow.com/questions/64652057/parse-rss-xml-with-kotlin | android, xml, parsing, kotlin, xml-parsing | 1,604,345,258 |
se_79854476 | stackoverflow | MOBILE_DEVELOPMENT | Android Filament shows my grid only green | Android Filament shows my grid only green
I'm trying to show a grid with different elevations depending on "y" value, but I only see "green" color.
I've tried the following:
adding UV1
custom0
changing the figure’s scale
modifying the VertexBuffer
But the result is always a flat green shape, when in theory it should... | https://stackoverflow.com/questions/79854476/android-filament-shows-my-grid-only-green | android, kotlin, google-filament | 1,766,593,135 |
se_79853954 | stackoverflow | MOBILE_DEVELOPMENT | SQLite fails to find newly inserted row | SQLite fails to find newly inserted row
I'm using SQLite to track Fabrics and create projects that use those Fabrics. Two tables point to each other so Fabrics knows what projects they belong to and projects know what Fabrics are a part of it. While adding a new project I want to cycle through the Fabrics that are add... | https://stackoverflow.com/questions/79853954/sqlite-fails-to-find-newly-inserted-row | android, sql, kotlin, sqlite, android-sqlite | 1,766,520,193 |
se_79848662 | stackoverflow | MOBILE_DEVELOPMENT | Is it possible to create a L2CAP Connection oriented Channel between an Android app and a BLE peripheral without using GATT | Is it possible to create a L2CAP Connection oriented Channel between an Android app and a BLE peripheral without using GATT
I use a standard EmptyActivity project in Android Studio with the following code added in the MainActivity.kt:
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedIns... | https://stackoverflow.com/questions/79848662/is-it-possible-to-create-a-l2cap-connection-oriented-channel-between-an-android | android, kotlin, bluetooth-lowenergy, l2cap, nrf52840 | 1,765,898,761 |
se_79853193 | stackoverflow | MOBILE_DEVELOPMENT | Gradle cannot find KSP plugin for Room setup in new Android Studio project | Gradle cannot find KSP plugin for Room setup in new Android Studio project
I'm completely stuck on a Gradle sync error:
Plugin [id: 'com.google.devtools.ksp'] was not found.
What I'm trying to do
I am simply trying to add the Room and KSP dependencies to a fresh Android Studio project in order to set up a local data... | https://stackoverflow.com/questions/79853193/gradle-cannot-find-ksp-plugin-for-room-setup-in-new-android-studio-project | android, kotlin, gradle | 1,766,434,740 |
se_79773140 | stackoverflow | MOBILE_DEVELOPMENT | KMP Navigation error: could not find any NavType for argument SearchType (works on Android, crashes on iOS in Xcode) | KMP Navigation error: could not find any NavType for argument SearchType (works on Android, crashes on iOS in Xcode)
I’m working on a Kotlin Multiplatform (KMP) project with navigation. I have the following setup:
@Serializable
data class SearchBoxScreen(
val searchType: SearchType,
) : Screen()
@Serializable
enu... | https://stackoverflow.com/questions/79773140/kmp-navigation-error-could-not-find-any-navtype-for-argument-searchtype-works | android, kotlin, android-jetpack-compose | 1,758,667,751 |
se_79852867 | stackoverflow | MOBILE_DEVELOPMENT | How to use ReplaceToken-filter with properties and Gradle 9 Configuration Cache | How to use ReplaceToken-filter with properties and Gradle 9 Configuration Cache
In a Gradle multi project build, the project is using a custom property foo, for example for the processResources task.
This property can optionally be passed via the CLI using ./gradlew ... -Pfoo=bar. If it is not explicitly passed, the d... | https://stackoverflow.com/questions/79852867/how-to-use-replacetoken-filter-with-properties-and-gradle-9-configuration-cache | kotlin, gradle | 1,766,405,278 |
se_79425490 | stackoverflow | MOBILE_DEVELOPMENT | ARCore with Sceneform for land area measurement | ARCore with Sceneform for land area measurement
I'm developing an Android app in Kotlin that needs to implement ARCore with Sceneform for land area measurement. I need clarification on the appropriate implementation structure because I'm having problems with dependency conflicts.
What is the correct dependency tree t... | https://stackoverflow.com/questions/79425490/arcore-with-sceneform-for-land-area-measurement | kotlin, arcore, sceneform, android-augmented-reality, sceneview | 1,739,126,594 |
se_79851871 | stackoverflow | MOBILE_DEVELOPMENT | Gradle fails to resolve Firebase dependencies with version catalog (libs.versions.toml) despite correct setup | Gradle fails to resolve Firebase dependencies with version catalog (libs.versions.toml) despite correct setup
I'm trying to set up an Android project with several Firebase libraries (Auth, Firestore, Vertex AI) using the modern Gradle version catalog (libs.versions.toml). However, Gradle is consistently unable to find... | https://stackoverflow.com/questions/79851871/gradle-fails-to-resolve-firebase-dependencies-with-version-catalog-libs-version | android, firebase, kotlin, gradle | 1,766,249,157 |
se_79851764 | stackoverflow | MOBILE_DEVELOPMENT | Is there a way to configure a "Trust anchor for certification path" in Android Studio? | Is there a way to configure a "Trust anchor for certification path" in Android Studio?
When trying to connect to the server, receive this kind of error:
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
At this point in time, it’s not possible to make changes on the... | https://stackoverflow.com/questions/79851764/is-there-a-way-to-configure-a-trust-anchor-for-certification-path-in-android-s | java, android, kotlin, ktor | 1,766,235,586 |
se_29595301 | stackoverflow | MOBILE_DEVELOPMENT | Property include/exclude on Kotlin data classes | Property include/exclude on Kotlin data classes
Suppose I only want one or two fields to be included in the generated equals and hashCode implementations (or perhaps exclude one or more fields). For a simple class, e.g.:
data class Person(val id: String, val name: String)
Groovy has this:
@EqualsAndHashCode(includes... | https://stackoverflow.com/questions/29595301/property-include-exclude-on-kotlin-data-classes | kotlin, reflection, annotations, data-class | 1,428,877,128 |
se_79851172 | stackoverflow | MOBILE_DEVELOPMENT | Android BLE indication response fails | Android BLE indication response fails
I created an Android app that connects to a Peripheral via BLE.
The remote device eventually sends an Indication, which I process in onCharacteristicChanged and send a follow-up command via gatt.writeCharacteristic from within the callback.
The code looks something like this:
over... | https://stackoverflow.com/questions/79851172/android-ble-indication-response-fails | java, android, kotlin, bluetooth-lowenergy, android-bluetooth | 1,766,154,004 |
se_79835738 | stackoverflow | MOBILE_DEVELOPMENT | Android Intent.ACTION_SEND_MULTIPLE: Is it possible to set separate captions for each image URI? | Android Intent.ACTION_SEND_MULTIPLE: Is it possible to set separate captions for each image URI?
I am developing an automation feature for an Android app where I need to share multiple images to WhatsApp (and other apps) using Intent.ACTION_SEND_MULTIPLE.
The Goal:
I want to share a batch of images where each image ha... | https://stackoverflow.com/questions/79835738/android-intent-action-send-multiple-is-it-possible-to-set-separate-captions-for | android, kotlin, android-intent, share, whatsapp | 1,764,671,314 |
se_31847292 | stackoverflow | MOBILE_DEVELOPMENT | How to pass compiler arguments to Kotlin Compiler with Gradle | How to pass compiler arguments to Kotlin Compiler with Gradle
I'm compiling a Kotlin library jar with Gradle using the Kotlin gradle plugin:
apply plugin: 'kotlin'
I'm trying to find a way to pass a simple -include-runtime compiler arguments to the kotlin compiler. I can't seem to find any documentation on this at a... | https://stackoverflow.com/questions/31847292/how-to-pass-compiler-arguments-to-kotlin-compiler-with-gradle | gradle, kotlin | 1,438,837,955 |
se_79849410 | stackoverflow | MOBILE_DEVELOPMENT | Jetpack Compose LazyColumn scroll offset breaks when content size changes dynamically | Jetpack Compose LazyColumn scroll offset breaks when content size changes dynamically
I'm building a chat screen using Jetpack Compose with a LazyColumn. During loading, I show a shimmering placeholder with a large height. Once the real data arrives, the content shrinks because the final messages are smaller.
The prob... | https://stackoverflow.com/questions/79849410/jetpack-compose-lazycolumn-scroll-offset-breaks-when-content-size-changes-dynami | android, kotlin, scroll, android-jetpack-compose, lazycolumn | 1,765,972,902 |
se_79836701 | stackoverflow | MOBILE_DEVELOPMENT | Unable to create an ExerciseSessionRecord to store in Health Connect | Unable to create an ExerciseSessionRecord to store in Health Connect
I'm struggling to understand how I can create an ExerciseSessionRecord to store in Health Connect when the constructor is declared internal (restricted to library).
class ExerciseSessionRecord
@RestrictTo(RestrictTo.Scope.LIBRARY)
internal constructo... | https://stackoverflow.com/questions/79836701/unable-to-create-an-exercisesessionrecord-to-store-in-health-connect | android, kotlin, healthconnect | 1,764,752,288 |
se_72894511 | stackoverflow | MOBILE_DEVELOPMENT | Is green Dao supported by kotlin? | Is green Dao supported by kotlin?
While converting an existing Java project to Kotlin, I’m facing an unresolved reference to dao issue. I tried changing the order of GreenDAO and Kotlin dependencies, but the problem still persists. | https://stackoverflow.com/questions/72894511/is-green-dao-supported-by-kotlin | kotlin, greendao | 1,657,182,124 |
se_79849182 | stackoverflow | MOBILE_DEVELOPMENT | Pixel values differ between Python and Android Kotlin when computing MobileNetV3 embeddings, causing mismatched results | Pixel values differ between Python and Android Kotlin when computing MobileNetV3 embeddings, causing mismatched results
I’m having an issue with MobileNetV3 image embeddings:
I compute embeddings for original images in Python and store them in a database.
On Android Kotlin, when a user uploads an image, I also compute... | https://stackoverflow.com/questions/79849182/pixel-values-differ-between-python-and-android-kotlin-when-computing-mobilenetv3 | python, android, kotlin, tensorflow, vector-search | 1,765,959,131 |
se_79849210 | stackoverflow | MOBILE_DEVELOPMENT | android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed | android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed
I'm trying to update a database. If the version is newer, the old database is deleted and the new one is loaded from a file:
val newDBVersion = SettingsManager.loadReticlesNewDBversion()
val currentDBVersion = SettingsManager.loa... | https://stackoverflow.com/questions/79849210/android-database-sqlite-sqlitedatabasecorruptexception-database-disk-image-is-m | android, kotlin, android-sqlite, android-room | 1,765,961,347 |
se_79849630 | stackoverflow | MOBILE_DEVELOPMENT | Unable to find method ''java.lang.String com.squareup.javapoet.ClassName.canonicalName()'' | Unable to find method ''java.lang.String com.squareup.javapoet.ClassName.canonicalName()''
The Gradle script syncs correctly, but when I try to run the application I get the following error:
Unable to find method ''java.lang.String com.squareup.javapoet.ClassName.canonicalName()''
'java.lang.String com... | https://stackoverflow.com/questions/79849630/unable-to-find-method-java-lang-string-com-squareup-javapoet-classname-canonic | android, kotlin, gradle, dagger-hilt, javapoet | 1,765,988,674 |
se_79849616 | stackoverflow | MOBILE_DEVELOPMENT | Can we integrate NextJs in KMP project? | Can we integrate NextJs in KMP project?
I'm currently learning KMP for Android, iOS, Web with native UI approach so that I can develop an application that works everywhere. I want to know that the way we use React+TS for making native UI for web can we make a nextjs project in it, so that I can develop UI faster in t... | https://stackoverflow.com/questions/79849616/can-we-integrate-nextjs-in-kmp-project | android, ios, kotlin, next.js, kotlin-multiplatform | 1,765,988,020 |
se_79538467 | stackoverflow | MOBILE_DEVELOPMENT | Thread.currentThread().contextClassLoader.getResource() can't get folder in Release | Thread.currentThread().contextClassLoader.getResource() can't get folder in Release
Use Intellij Idea
Compose Desktop project
Main.kt
@Composable
@Preview
fun App() {
MaterialTheme {
Button(
onClick = {
val resource = Thread.currentThread()
.contextCl... | https://stackoverflow.com/questions/79538467/thread-currentthread-contextclassloader-getresource-cant-get-folder-in-rele | kotlin, getresource, compose-desktop, contextclassloader | 1,743,069,128 |
se_79543272 | stackoverflow | MOBILE_DEVELOPMENT | How can I create a flat 'folder' shape in Jetpack Compose? | How can I create a flat 'folder' shape in Jetpack Compose?
I am trying to create a custom shape in Jetpack Compose that looks similar to the one shown above. However, despite trying different approaches, I haven't been able to achieve the desired result.
I have explored various options, such as using Path with... | https://stackoverflow.com/questions/79543272/how-can-i-create-a-flat-folder-shape-in-jetpack-compose | android, kotlin, android-jetpack-compose | 1,743,252,858 |
se_62712430 | stackoverflow | MOBILE_DEVELOPMENT | import kotlinx.android.synthetic failed : Android studio doesn't find it but I can run the app | import kotlinx.android.synthetic failed : Android studio doesn't find it but I can run the app
I found a lot of things about the subject, but not enough to fix it, so here I go.
I just arrived on a new project and they have a heavy problem :
import kotlinx.android.synthetic
is unresolved by Android Studio. The pr... | https://stackoverflow.com/questions/62712430/import-kotlinx-android-synthetic-failed-android-studio-doesnt-find-it-but-i-c | android, kotlin, gradle, synthetic, kotlinx | 1,593,768,293 |
se_79848818 | stackoverflow | MOBILE_DEVELOPMENT | Why Is Koog Failing to Find kotlinx.datetime.Clock? | Why Is Koog Failing to Find kotlinx.datetime.Clock?
Using Koog 0.5.4, attempting to set up an agent crashes with:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: kotlinx/datetime/Clock$System
at ai.koog.prompt.executor.ollama.client.OllamaClient.<init>(OllamaClient.kt:76)
I tried adding... | https://stackoverflow.com/questions/79848818/why-is-koog-failing-to-find-kotlinx-datetime-clock | kotlin, koog | 1,765,910,844 |
se_68232128 | stackoverflow | MOBILE_DEVELOPMENT | Is it safe to pass a Kotlin inline class to a Retrofit function | Is it safe to pass a Kotlin inline class to a Retrofit function
If I have the following inline class:
interface StringId {
val raw: String
}
@JvmInline
value class MyId(override val raw: String) : StringId
is it safe to pass it to a Retrofit function?
interface MyApiEndpoints {
@GET("/fetch/{id}")
suspend fun ... | https://stackoverflow.com/questions/68232128/is-it-safe-to-pass-a-kotlin-inline-class-to-a-retrofit-function | kotlin, retrofit, retrofit2 | 1,625,268,239 |
se_79848393 | stackoverflow | MOBILE_DEVELOPMENT | Hazelcast 5.6.0 and client configuration | Hazelcast 5.6.0 and client configuration
Our application is leveraging dependencies com.hazelcast:hazelcast and com.hazelcast:hazelcast-spring to connect to a Hazelcast cluster. In the process of upgrading their versions from 5.5.0 to 5.6.0, we noticed that our application no longer would start successfully.
The follo... | https://stackoverflow.com/questions/79848393/hazelcast-5-6-0-and-client-configuration | java, spring, kotlin, hazelcast | 1,765,877,922 |
se_45117028 | stackoverflow | MOBILE_DEVELOPMENT | How can I reference an unnamed argument of a when expression? | How can I reference an unnamed argument of a when expression?
I have a when expression that looks something like this:
when(foo.toString()){
"" ->'A'
"HELLO" ->'B'
"GOODBYE"->'C'
else ->foo.toString()[0]//problematic method call duplication
}
Now, I don't want to call foo.toString() twice... | https://stackoverflow.com/questions/45117028/how-can-i-reference-an-unnamed-argument-of-a-when-expression | switch-statement, kotlin | 1,500,113,684 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.