ja2375 / add_2_calendar

A really simple Flutter plugin to add events to each platform's default calendar..
MIT License
188 stars 113 forks source link

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

Open desmeit opened 11 months ago

desmeit commented 11 months ago

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 commented 5 months ago

did you find solution ?

diego-bufalo commented 3 weeks ago

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