Kamel-Media / Kamel

Kotlin asynchronous media loading and caching library for Compose.
Apache License 2.0
636 stars 24 forks source link

Kamel 0.9.0 causing build failure #83

Closed alfietapping closed 9 months ago

alfietapping commented 9 months ago

Using Kamel 0.9.0 results in this build failure:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':android:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
   > 2 files found with path 'META-INF/versions/9/previous-compilation-data.bin' from inputs:
      - /Users/macbook/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-datetime-jvm/0.4.1/684eec210b21e2da7382a4aa85e56fb7b71f39b3/kotlinx-datetime-jvm-0.4.1.jar
      - /Users/macbook/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-jvm/0.21.0/ffdbefd57197da7e9f28e5135458809376f4f84/atomicfu-jvm-0.21.0.jar
     Adding a packagingOptions block may help, please refer to
     https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/ResourcesPackagingOptions
     for more information
alfietapping commented 9 months ago

Just to add i've reverted the Kamel version to 0.8.3 and it works, looks like an isolated 0.9.0 issue

luca992 commented 9 months ago

That's a pretty common android issue, I've had to use packagingOptions in almost all my android projects. I don't think there's anything I can do about it.

https://youtrack.jetbrains.com/issue/KTOR-6362/Android-a-failure-while-executing-MergeJavaResWorkAction-with-Ktor-2.3.5

https://stackoverflow.com/questions/44342455/more-than-one-file-was-found-with-os-independent-path-meta-inf-license