Execution failed for task ':app:checkClassicGooglePlayDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:classicGooglePlayDebugRuntimeClasspath'.
> Failed to transform SaaS_TalkingDataSDK_Android_V5.0.0.jar to match attributes {artifactType=enumerated-runtime-classes, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for EnumerateClassesTransform: /home/circleci/project/app/libs/SaaS_TalkingDataSDK_Android_V5.0.0.jar.
> zip END header not found
I am getting this error in Android project which has following configurations
build:gradle:7.0.4
And android.useAndroidX=true android.enableJetifier=true in gradle.properties
use jdk 17 it's solve my problem
The solution is to update your gradle to version 8.2.1 or above. Here is a helpful article I used to diagnose the issue.
The JdkImageTransformDelegate task did not work with jdk 21+ since it expects a few different flags from the gradle, which is why switching back to jdk 17 fixes the issue as well. They fixed it in this commit. While you can just go back to jdk 17, if you already have a project using jdk 21, it is best practice to keep it the same, to guarantee the same functionality in your apps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With