kmm Questions

3

Solved

I was developing an Kotlin Multiplatform App where I would like to use @Parcelize annotation in my model class. But in Kotlin Multiplatform plugins the @Parcelize annotation, in the kotlin version ...
Pomona asked 30/1, 2022 at 17:11

2

I am trying to create a small app using Kotlin Multiplatform where i can save book titles and their authors but i'm struggling with the data classes and how to map them together so that i get the a...
Scheller asked 31/3, 2022 at 14:8

1

Solved

I have a KMM project that is working perfectly except Android Studio gives an error on every expect function/value in my project complaining the actual version of it doesn't exist for JVM. The A i...

0

This is my table structure CREATE TABLE Missions( MissionID INTEGER NOT NULL UNIQUE, MilestoneID INTEGER NOT NULL, MissionExpiry TEXT, MissionStatus TEXT, Count INTEGER DEFAULT 0, MilestoneLi...
Diverting asked 27/5, 2022 at 9:3

0

I have recently integrated Firebase Crashlytics to my KMM app and set up a release build with obfuscation. I followed the official documentation (https://firebase.google.com/docs/crashlytics/get-de...
Appleton asked 19/4, 2022 at 12:11

0

I have an existing Android app where I like to integrate a KMM library project as a git submodule. We want to integrate a git submodule on local builds and using a maven repository dependency on CI...
Shroudlaid asked 8/3, 2022 at 15:15

2

I am very new to KMM (Kotlin Multiplatform Mobile) and iOS development (including CocoaPods). I have come across the following build error in Android Studio. Execution failed for task ':shared:pod...
Dvinsk asked 2/6, 2021 at 23:19

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...

1

In native android project, we can define BuildConfig variables which can be change based on the selected build type (debug or release). For this we can add the code below in app level gradle file b...
Magee asked 31/5, 2021 at 15:26

1

Solved

When I attempt to add the Firebase-bom dependency using the following block in a Kotlin Multiplatform Mobile (KMM) project's shared module, the word platform appears in red error text and the Gradl...
Ergotism asked 24/5, 2021 at 17:37

1

I'm exploring KMM, I have done with the setup in Android Studio. I could able to run the Android app perfectly, but when I try to run the ios app, facing an issue in configuration setup. Xcode proj...
Sympathize asked 9/2, 2021 at 12:53

1

I've read these SO posts 1, 2, 3 which faced a similar problem. I'm trying to use a .klib in my KMM Android project. The Klib is built from library.h C header. Here's what I did: I built the Kotlin...

1

Solved

I can't get Ktor to work in a KMM project, I just get a Unresolved reference: HttpClient error when trying to reference any Ktor classes. If I try to manually add the ktor import it says Unresolved...
Transmigrate asked 29/3, 2021 at 4:28

1

Solved

I need to build an app for both iOS and Android. I am getting this error after restarting Android Studio. Kotlin Multiplatform Mobile plugin issue Kotlin Multiplatform Mobile plugin is supposed to...
Marthena asked 12/1, 2021 at 3:2

2

I'm currently working on a multi-platform module using kotlin. To do so, I rely on the expect/actual mechanism. I declare a simple class in Common.kt: expect class Bar constructor( name: String...
Danelaw asked 6/5, 2019 at 12:54

3

Solved

I'm using Kotlin multi-platform (JVM & JS), which in IDEA creates three projects: demo, demo-js and demo-jvm. I would like to split the common code into more subprojects/submodules. Let's say ...
Keturahkeung asked 10/1, 2018 at 19:15
1

© 2022 - 2025 — McMap. All rights reserved.