Hey, anyone know how to enable "coreLibraryDesugar...
# multiplatform
s
Hey, anyone know how to enable "coreLibraryDesugaring" with KMP and the new android.kotlin.multiplatform.library with AGP 9.1 ? I tried to add
Copy code
configurations {
    coreLibraryDesugaring {
       dependencies {
          implementation(libs.desugar.jdk.libs)
       }
    }
}
But I still get org.jetbrains.kotlin.gradle.plugin.ide.IdeMultiplatformImportImpl$RegisteredAdditionalArtifactResolver failed on composeApp:composeApp/androidMain java.lang.RuntimeException: coreLibraryDesugaring configuration contains no dependencies. If you intend to enable core library desugaring, please add dependencies to coreLibraryDesugaring configuration.
e
should be the same as
com.android.library
, with a top-level
Copy code
dependencies {
    coreLibraryDesugaring(libs.desugar.jdk.libs)
}
s
Ok, i'm genuinly confused now
It work
Thank you
I was sure the symbole was not found
121 Views