kotlin-multiplatform-mobile Questions

9

I've just created a new KMM project through out KMM Plugin, but I can't run or even debug in Xcode iosApp part of the project. When I try to run iosApp from Android Studio, the build process fails ...

4

I created a project to demo Kotlin Multiplatform Mobile. I built and ran it successfully on both devices: Android and iOS. After that, I re-ran the project on iOS. It had an error. > Configure p...
Lilylivered asked 3/8, 2021 at 16:31

4

Solved

I have created a new KMM project and I get red errors in all Gradle files kdoctor: [v] System OS: macOS (12.5.1) CPU: Apple M1 Pro [v] Java Java (openjdk version "17.0.4" 2022-07-19 L...

6

Solved

I have followed the KMM hands-on tutorial on how to build a sample app with KMM and I was able to complete all the steps successfully! (Yu-huu!) Now I am trying to do a small POC in the production ...

1

After creating a kmm application using the wizard from the kotlin-multiplatform-mobile plugin, I tried running the ios simulator and got the error below. kotlin multiplatform mobile java.lang.Illeg...
Walloping asked 23/11, 2021 at 15:35

5

Solved

I have a KMM application in which the android target uses Jetpack Compose. I am getting the following error when I try to use a drawable resource: e: [...]/OnboardingScreen.kt: (33, 46): Unresolve...

8

I created a new KMM project and selected Cocoapods for the iOS framework distribution and as soon as it finished building it threw the following error: Executing of 'pod install' failed with code 1...
Insignificance asked 2/11, 2021 at 4:56

3

Solved

I'm trying to use coroutines in a Kotlin Multiplatform project. I'm not experienced in either. I'm trying to call this function fun startFlow { coroutineScope.launch { withContext(defaultDispatc...

1

I'm following the guide here to try and use an iOS framework without CocoaPods in a new KMM project: https://kotlinlang.org/docs/kmm-add-dependencies.html#without-cocoapods I have an existing, work...

0

I have one project(android and iOS) where I am sharing the common code inside shared folder. I have written both unit tests under commonTest(unit-test) folder as well as Instrumentation test inside...

3

I'm trying to add moko a dependency to a kotlin multiplataform on gradle. org.gradle.internal.resolve.ArtifactNotFoundException: Could not find mvvm-livedata-0.9.1-samplessources.jar (dev.icerock....
Catgut asked 25/1, 2021 at 21:17

2

I am producing a KMM application, I have already done the Android part without any problems, everything works perfectly. Nevertheless, when I launch the iOS version, by opening the iosMyApp.xcworks...

2

Solved

I'm trying to run tests in the shared library. Setup (versions should be the same for both machines - all are up to date as of today): Kotlin 1.6.21 (tried 1.6.20 and 1.6.10) OpenJDK 11.0.15 (via ...
Sixtynine asked 12/5, 2022 at 18:8

2

Solved

I want to find application version code in Kmm. In specific platform i.e. Android var versionCode = BuildConfig.VERSION_CODE it will return 1.1 iOS let appVersion = "iOS " + (Bundle.main...
Scarlett asked 14/4, 2022 at 11:45

1

I'm currently looking at having a KMM application backed by SQLdelight for all domain-related operations. SQLdelight seems to provide really nice interfaces, however it seems like all the write cal...
Prismatic asked 23/4, 2021 at 15:6

1

Solved

I got this issue when trying to custom context for kotlin multiplatform Actual typealias 'ApplicationContext' has no corresponding expected declaration The following declaration is incompatible bec...

0

When I switch build variants I got compilation error, but the problem is only for non default build variants (debug & release). So if I define customBuild { } and then choose that one, it fails...

1

Solved

I have a C++ library that I need to use from android and iOS, so my idea is to create a multiplatform module that would wrap the library to use it from both implementations. In other hand, I've see...
Physiologist asked 22/12, 2021 at 15:53

2

Solved

I'm trying to upload multiple files. val ktorVersion = "1.5.0" val serializationVersion = "1.0.1" That is how I'm doing that: override suspend fun uploadFiles( binaryFiles: M...

1

I am currently struggling for best way to add property to existing jsonObject(kotlinx.serialization.json.JsonObject) Even I have found that JsonObject internally has private immutable map private v...

1

Solved

As a platform limitation we can't use Java sources with Kotlin Multiplatform Mobile. But if Kotlin is 100% compatible with Java, why can't we use Java with Kotlin Multiplatform Mobile? I mean use i...

5

I want to add a Run/Debug Configuration for an iOS Application for a Kotlin Multiplatform Mobile application in Android Studio 4.1.2. However, there seems to be a problem with the configuration for...

4

I'm wondering how to write unit tests for SQLDelight on KMM. First of all, I can't even add the SQLDelight dependency correctly. val commonTest by getting { dependencies { implementation(kotlin(...

2

Solved

I have a Kotlin Multiplatform Mobile library that I published to Maven Central. I am also trying to use this library in a non-KMM Android app. When I declare the dependency in the android app I get...

0

I want to integrate C code into a Kotlin Multiplatform Mobile project using the cinterop tool. I already spent some time on the documentation on Kotlin Multiplatform and Kotlin/Native but I can't s...

© 2022 - 2025 — McMap. All rights reserved.