jump-sdk / jetpack_compose_country_code_picker_emoji

Jetpack Compose Country Code Picker with Emoji Flags
https://jitpack.io/#jump-sdk/jetpack_compose_country_code_picker_emoji
Apache License 2.0
45 stars 13 forks source link

Build errors #33

Closed cw-communiski closed 9 months ago

cw-communiski commented 9 months ago

Tried to add this to my project, but it won't build, and throws the following error:

Execution failed for task ':androidApp:mergeExtDexDebug'.
> Could not resolve all files for configuration ':androidApp:debugRuntimeClasspath'.
   > Failed to transform jetpack_compose_country_code_picker_emoji-2.1.2.aar (com.github.jump-sdk:jetpack_compose_country_code_picker_emoji:2.1.2) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingNoClasspathTransform: C:\Users\charl\.gradle\caches\transforms-3\cad6f25fd016120a4f3cfbae963cfe16\transformed\jetpack_compose_country_code_picker_emoji-2.1.2-runtime.jar.
         > Error while dexing.
   > Failed to transform kotlin-stdlib-1.9.10.jar (org.jetbrains.kotlin:kotlin-stdlib:1.9.10) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingNoClasspathTransform: C:\Users\charl\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\1.9.10\72812e8a368917ab5c0a5081b56915ffdfec93b7\kotlin-stdlib-1.9.10.jar.
         > Error while dexing.
hbmartin commented 9 months ago

@cw-communiski are you able to post a sample project? Or at least your build.gradle? What is your minsdk?

hbmartin commented 9 months ago

Closing this for now, feel free to re-open with additional information. Please also note that this library is built targeting Java 17, so this error may occur if you are targeting a different version e.g. Java 8. https://github.com/jump-sdk/jetpack_compose_country_code_picker_emoji/blob/master/ccp/build.gradle.kts#L31