2,217 questions
0
votes
0
answers
16
views
Animating Svg path in the desktop compose app flickers without actually rendering anything. Why?
I am trying to create a path animation of Svg in the desktop compose app.
fun SvgDocument.drawCompletedFills(buildPaths: List<BuildPath>, drawScope: DrawScope, canvas: Canvas, targetLength: ...
-3
votes
0
answers
64
views
Black screen issue for the iOS platform during screen switch using Compose Multiplatform
During the development of the KMP + Compose application, I encountered an iOS-only UI issue.
Video description of the rendering issue
The problem looks like, when using the application in some random ...
5
votes
2
answers
3k
views
Copying to clipboard on Kotlin Multiplatform
I couldn't find anyone doing this so far so I'll try and properly state the issues I am facing.
I have a compose-ui module in the shared module of my KMP app. The compose-ui has a commonMain directory ...
Best practices
0
votes
0
replies
34
views
How to include Java in this project and enable mixed development with both Java and Kotlin
How to include Java in this project and enable mixed development with both Java and Kotlin.
I want to know how to use Java and Kotlin interoperably in a Kotlin Multiplatform Compose Desktop project, ...
1
vote
0
answers
60
views
Android emulator not running from Play button in both IntelliJ and Android Studio on Linux, but it does from command line, and logcat show nothing
PROBLEM
Hi, I have IntelliJ Ultimate 2025.2.4, and Android Studio 2025.2.1. When I create a new default project in either one > download all the sources it needs > sync gradle > then click ...
0
votes
0
answers
66
views
KMM - cannot see interface from Kotlin in IOS
I tried to follow: https://medium.com/@rishabh1112131415/how-to-handle-permissions-in-kotlin-multiplatform-without-external-libraries-05d7203237e3
but I get an error: No type named '...
0
votes
0
answers
76
views
How to securely store values in iOS Keychain in a Kotlin Multiplatform (KMP) app? toNSData() not recognized
I’m building a Kotlin Multiplatform app (KMP) and want to store sensitive values like auth tokens securely on iOS using Keychain (instead of NSUserDefaults). I found this code on Medium, but it does ...
2
votes
2
answers
2k
views
Kotlin Multiplatform: Set version in Info.plist
I have a Kotlin Multiplatform project and build it for iOS with
assembleXCFramwork
Everything works fine and the module is created. But currently I don't see any version in the Info.plist file.
In ...
3
votes
1
answer
226
views
How to determine IS_DEBUG in compose mutliplatform
how to determine IS_DEBUG in compose multiplatform in commonMain?. BuildKonfig and gmazzo/buildconfig don't help.
If you know, please give instructions)
Code:
this code does not work
`buildConfig {
...
1
vote
0
answers
82
views
Kotlin Multiplatform: Could not resolve <unknown coordinates> for iOS targets when building Google Maps module
I’m currently working on a Kotlin Multiplatform (KMP) project that includes a module for Google Maps integration (:core:maps:v2).
Everything works fine on Android, but when I try to build for iOS, I ...
1
vote
0
answers
42
views
Unable to setup Kapt for dagger in kotlin multiplatform
I'm trying to set up Dagger in a Kotlin Multiplatform module for Android only as a POC for a migration of a project.
Therefore, I needed to set up kapt and followed the instructions in Kmp in Kapt ...
2
votes
1
answer
111
views
How to create a searchable dropdown/autocomplete TextField in Jetpack Compose without the suggestion list stealing focus?
My Goal:
I'm trying to implement an autocomplete TextField in Jetpack Compose. The desired behavior is:
A user starts typing in a TextField.
A list of suggestions, filtered by the user's input, ...
0
votes
0
answers
34
views
Can we expose interfaces from `commonMain` to JS that can be implemented in Typescript?
TLDR: can we expose interfaces from commonMain to JS that can be implemented in Typescript?
Exposing from jsMain appears to work fine:
If I expose interface from jsMain with external and @JsExport
@...
0
votes
1
answer
96
views
How to speed up DataStore reads in a Kotlin Multiplatform (KMP) project?
I’m using Jetpack DataStore (Preferences) in a Kotlin Multiplatform Mobile (KMM/KMP) project to store some user data, including a JSON-serialized object:
class DataStoreVM(
private val dataStore: ...
2
votes
1
answer
775
views
Self Signed certificates in kotlin multiplatform compose with ktor
I am currently building an android/ios mobile application with kotlin multiplatform compose. This application uses a django server for it's backend. The server has some self signed certificates that ...
1
vote
0
answers
69
views
Trouble compiling a basic kotlin multiplatform app for ios
I've been reworking an android app to make it a compatible with the the kotlin multiplatform framework. After getting stuck I decided to start with a fresh, very basic setup and build out from there. ...
1
vote
1
answer
3k
views
Check your module classpath for missing or conflicting dependencies KMM
I have a project in Android Studio for Kotlin Multiplatform Mobile (KMM) app using Kotlin. I am able to successfully run and build. However, when I open the project in Android Studio, I see the same ...
6
votes
3
answers
5k
views
Inject ViewModel into compose code by Koin in Compose Multiplatform
Is there any way to inject the ViewModel into composable function of Compose Multiplatform?
I have tried with Koin dependency injection but it seems not yet ready to inject ViewModel in common module ...
1
vote
1
answer
3k
views
How i can use Flow on swift Kotlin multiplatform?
I am creating my first kotlin multiplataform project, and i'm having some difficulty to use the kotlin flow on swift. I created the models, server data requests as common file using kotlin flow and ...
-2
votes
2
answers
229
views
Ktor upload ByteArray with FormData
I get ByteArray from camera in KMP project and try to upload it to server.
I try this
val response = client.post(url) {
setBody(
...
14
votes
5
answers
3k
views
RoomDatabaseConstructor on KotlinMultiplatform has no corresponding expected declaration
I have implemented the latest version of Room in my KMP project (roomCommon = "2.7.0-alpha06" ). The new version change the instantiation setup for a RoomDatabase in a KMP project
https://...
2
votes
2
answers
130
views
Why does my `RoomDatabase` instance not have all the public methods?
I have a Kotlin project for desktop which uses Room DB.
The main function looks like this:
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx....
5
votes
1
answer
203
views
In Kotlin Multi Platform and JetPack Compose, why and how is NavHost importing from the same file with 9 versions of the same object, yet no errors? [closed]
BACKGROUND
Hi,
I'm new to Kotlin, Kotlin Multi Platform, and Jetpack Compose, but not a noob to programming. I found a use for a KMP project, and have been working on making a NavGraph and a ...
0
votes
0
answers
78
views
Kotlin Multiplatform: slow iOS debugging in Android Studio?
I’ve been experimenting with debugging the iOS side of a Kotlin Multiplatform project directly in Android Studio. Overall, it works — I can set breakpoints in shared Kotlin code, step through logic, ...