russhwolf / multiplatform-settings

A Kotlin Multiplatform library for saving simple key-value data
Apache License 2.0
1.68k stars 67 forks source link

Failed to resolve: multiplatform-settings-no-arg-android-0.7.6-samplessources #86

Closed moeindev closed 3 years ago

moeindev commented 3 years ago

I'm having this issue when I add my kmm library as a dependency to my android project

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

moeindev commented 3 years ago

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)))
moeindev commented 3 years ago

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

russhwolf commented 3 years ago

Ah, good to know!