Now I have a very funny error in gradle: (this is ...
# android
d
Now I have a very funny error in gradle: (this is WITH
android.packaging.resources.excludes.add("META-INF/services/**")
...)
Copy code
§§§Execution failed for task ':app:mergeDebugUnitTestJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
   > 2 files found with path 'META-INF/services/kotlinx.coroutines.CoroutineExceptionHandler' from inputs:
      - org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1/kotlinx-coroutines-android-1.10.1.jar
      - org.jetbrains.kotlinx:kotlinx-coroutines-test-jvm:1.10.1/kotlinx-coroutines-test-jvm-1.10.1.jar
not kotlin but kotlin colored 4
c
Image from iOS.jpg
d
I posted it here since the two dependencies are kotlin coroutines which have the issue, so I really did think it was Kotlin in that way...
c
The dependencies are not your problem. AGP is your problem and for that please consider the links I posted or the Google issue tracker.
d
Nope, the build fails on the command line too
c
Yes, because the task that fails is from the Android Gradle Plugin. 😅
AGP != Android Studio - if that’s what your answer is referring to.
d
Ok, I hear, I didn't notice AGP, I thought you meant AS, I read a bit too quick, sorry! So you're saying it's some kind of bug in the plugin... I've tried asking in android united before, they usually don't answer... but I guess you're right, in the case it's related to AGP it's probably off-topic here, thanks for pointing out, I'll try not to post such things... I guess I was a bit frustrated when I wasted a bunch of hours on this... 😵‍💫
👍🏼 1
c
There is also a Gradle community slack - also maybe helpful in your case.
👍🏼 1
d
Just for the record... it seems to be a problem with the recent AGP canary versions: https://issuetracker.google.com/issues/401671164, thanks!