2,217 questions
0
votes
0
answers
14
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 ...
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 ...
1
vote
0
answers
71
views
Kotlin Multiplatform + Google Maps on iOS: Why do I still need .def file with SPM? Interop not working without cinterop
I am integrating Google Maps SDK for iOS into my Kotlin Multiplatform (KMP) project. Earlier I was using CocoaPods and everything was working. Now I migrated to Swift Package Manager (SPM) and removed ...
0
votes
1
answer
63
views
VLCJ on macOS in Kotlin Multiplatform project: Audio plays but no video rendering
I built a cross-platform project using Kotlin Multiplatform targeting Android, Windows, and macOS.
Now, I need to implement a media player that must support HLS. Because of this, I ruled out the ...
2
votes
0
answers
38
views
VNDocumentCameraViewController corrupting Compose's popup system on iOS
After using VNDocumentCameraViewController in Compose Multiplatform iOS, all popup-based components (AlertDialog, DatePickerDialog, ExposedDropdownMenuBox) stop working.
Open AlertDialog - works fine
...
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 ...
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: ...
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. ...
0
votes
1
answer
167
views
Kotlin Multiplatform Plugin not working properly
Kotlin Multiplatform for IntelliJ Idea (Community) Linux and Windows released. Version: 0.9-252.26199-IJ_CE-176. I have installed the plugin and restart the ide it says
Plugins 'Kotlin Multiplatform', ...
5
votes
3
answers
332
views
Can not use kotlinx-datetime:0.7.1 library with rememberDatePickerState() function of material3
Material3 rememberDatePickerState() crashing in desktop and iOS platforms.
I am using kotlin = "2.2.10" version for my Kotlin Compose Multiplatform (KMP/CMP) project. It runs fine on android ...
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 ...
2
votes
1
answer
184
views
How to include and play a Lottie animation in Compose Multiplatform?
How can I embed After Effects animations exported with Bodymovin extension as Lottie JSON format in a Compose Multiplatform app (Desktop/Windows/Linux/macOS, Android, iOS, Web/JS/WASM)? Is there a ...
3
votes
1
answer
165
views
fillMaxSize() after rotate() leads to wrong results
The following code gives me output I did not expect.
@Composable
fun App() {
MaterialTheme {
Box(
modifier = Modifier
.fillMaxSize()
.background(...
0
votes
0
answers
51
views
Font is not generated in Kotlin multiplartform project
I am trying to create a multimodule KMP project. I have created a module name theme. Inside that I want to define my color, typography and all theme releted code. Now I have created a directory named ...
0
votes
0
answers
70
views
Compose MissingResourceException in Jar plugin
I've got a compose multiplatform(desktop mainly) project with some UI packed to *.jar
resources config for the feature project
compose.resources {
packageOfResClass = "com.sample.feature"...
2
votes
1
answer
77
views
How can I set my iOS AVAudioSession to return input buffers of <0.1 s?
I'm trying to get short audio samples into my iOS app (in Kotlin Multiplatform). Here's my relatively simple setup (sampleRateInHz is defined elsewhere):
val bufferSize: AVAudioFrameCount = 512u
val ...
1
vote
1
answer
595
views
Compose Multiplatform Project (Android Target): Resources not working in module
Full reproducible example here
I'm working on a Jetpack Compose Multiplatform project. In my module ui-system, I have a drawable located at:
ui-system/src/commonMain/composeResources/drawable/compose-...
1
vote
1
answer
64
views
What is the difference between application() and awaitApplication() in Compose Multiplatform Desktop?
There are two functions to be used as the entry point for a CMP desktop application:
fun
usage
application()
fun main() = application { ... }
awaitApplication()
suspend fun main() = awaitApplication { ...
0
votes
0
answers
41
views
Kotlin/Compose Multiplatform: ClassCastException while running web app
I am developing an application using Kotlin and Compose Multiplatform. The Android and iOS versions work correctly, but the web application displays a blank screen.
Here is the content of Main.kt ...
0
votes
0
answers
71
views
Getting Each 'every' block requires single mock call! dev.mokkery.internal.NotSingleCallInEveryBlockException:
I am using Mockery lib for mocking in my Kotlin Multiplatform project. Even though I am using a mock instance; I am getting the error:
Each 'every' block requires single mock call! dev.mokkery....
1
vote
0
answers
65
views
How to build klib using C++ in Kotlin multiplatform and import it into a regular project for use?
I have some code that needs to be completed in C++, and I hope to compile the C++ code into some form of dynamic library or klib, which can then be used in the Kotlin multiplatform project or as a ...
0
votes
2
answers
101
views
Get the last version of my app from App store in kotlin multiplatform
I want to check if there is an update on App Store for the app. To do so, I need to get the last version of the app in App Store.
For android (it's working fine):
actual class AppUpdateManager(private ...