Closed moeindev closed 3 years ago
It's impossible to say what's going on without more information. Can you link to your project or a sample that reproduces the issue? Failing that, it would help to at least see your gradle files.
Ok, Let me explain my situation here:
I'm having this issue with my library that gradle can't resolve it in my android project ( Link to my question in stackoverflow) and for a temp workaround I decided to add my library as aar and it's dependencies like this and it's not resolving multiplatform settings:
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3"
implementation "io.ktor:ktor-client-android:1.5.4"
implementation "io.ktor:ktor-client-okhttp:1.5.4"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.3"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.2.0"
implementation "com.russhwolf:multiplatform-settings-no-arg-android:0.7.6"
implementation "io.insert-koin:koin-core-jvm:3.0.1"
implementation "io.ktor:ktor-client-core-jvm:1.5.4"
implementation "io.ktor:ktor-client-auth-jvm:1.5.4"
implementation "io.ktor:ktor-client-serialization-jvm:1.5.4"
implementation "io.ktor:ktor-client-logging-jvm:1.5.4"
implementation "org.jetbrains.kotlin:kotlin-stdlib-common:1.4.32"
implementation "org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.32"
implementation(project("/libs/myLib.aar)))
Update: after some digging, I solved my library's problem, and this samplesources seems like to be a bug! see here: https://youtrack.jetbrains.com/issue/KTIJ-10769
Ah, good to know!
I'm having this issue when I add my kmm library as a dependency to my android project