Hammad Akram
12/24/2024, 3:55 PMjava.lang.NoClassDefFoundError: Failed resolution of: Lorg/jetbrains/compose/resources/FontResources_skikoKt;
running for Android but it works for iOS and desktop. Any idea why is that?
I am using compose version 1.7.3 but I have tried other versions as well.
This only happens if I publish the library to Github Packages and then use that. If I use the module directly, it works as expected.Giorgi
12/24/2024, 4:10 PMimplementation(compose.components.resources)
dependency is missing for android source set?Hammad Akram
12/24/2024, 4:14 PMGiorgi
12/25/2024, 4:51 PMHammad Akram
12/26/2024, 8:40 AMkotlin {
androidTarget {
publishLibraryVariantsGroupedByFlavor = true
}
jvm("desktop")
iosX64()
iosArm64()
iosSimulatorArm64()
js(IR) {
browser()
}
wasmJs {
browser()
}
sourceSets.apply {
commonMain {
dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
implementation(compose.components.resources)
}
}
}
}
I publish this library to Github Packages or maven local for testing and consume it in another module.Hammad Akram
12/26/2024, 8:41 AMHammad Akram
12/26/2024, 10:07 AMpublishLibraryVariants("release")
fixed the issue.