Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':app:mergeLibDexDebug'. #148

Open
desmeit opened this issue Dec 5, 2023 · 2 comments
Open

Execution failed for task ':app:mergeLibDexDebug'. #148

desmeit opened this issue Dec 5, 2023 · 2 comments

Comments

@desmeit
Copy link

desmeit commented Dec 5, 2023

I use 2.2.5 because I still use Flutter 2.7.12.
I get this error with:
Kotlin: 1.8.21
Gradle: 7.4

* What went wrong:
Execution failed for task ':app:mergeLibDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform classes.jar (project :add_2_calendar) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=23, org.gradle.category=library, org.gradle.jvm.environment=android, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=androidJvm}.
      > Execution failed for DexingWithClasspathTransform: /Users/martinrost/Documents/flutter/iam/build/add_2_calendar/intermediates/runtime_library_classes_jar/debug/classes.jar.
         > Error while dexing.

What can I do?

@aymene-hub
Copy link

did you find solution ?

@diego-bufalo
Copy link

diego-bufalo commented Nov 1, 2024

did you find solution ?

yes buddy, to fix this problem u just need to set ur flutter to use the correct jdk version

flutter config --jdk-dir /home/.sdkman/candidates/java/${VERSION}/

maybe u are using a jdk not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants