https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

John Gainfort

09/23/2020, 6:29 PM
Too add to the list of questions. I am working on a kotlin multi platform library (only android and js for now), I have the library setup following what I think is latest guidelines but when I am trying to import the library into an android app through mavenLocal(), so not pointing to the project, I am getting the following error
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve tech.ctawave.cmcd:cmcd-android:0.0.1.
Has anyone run into this? gradle 6.6.1, kt 1.4.10, and I have set
Copy code
android {
   publishAllLibraryVariants()
}
within the library gradle. Any help is appreciated.
a

andylamax

09/23/2020, 6:50 PM
did adding matching fallbacks help in gradle?
j

John Gainfort

09/23/2020, 6:59 PM
not exactly sure how to implement that
in the app I just have
Copy code
buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), '<http://proguard-rules.pro|proguard-rules.pro>'
        }
        debug {}
    }
within the build.gradle
removing the debug has the same effect.
a

andylamax

09/23/2020, 8:54 PM
try adding matchingFallback = ["release"] in debug
j

John Gainfort

09/23/2020, 8:56 PM
that did the trick!!
Nice find
thank you!