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

Error when running the app. #4

Open
ribesh-code opened this issue Dec 6, 2024 · 2 comments
Open

Error when running the app. #4

ribesh-code opened this issue Dec 6, 2024 · 2 comments

Comments

@ribesh-code
Copy link

ribesh-code commented Dec 6, 2024

Error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeExtDexDevelopmentDebug'.
> Could not resolve all files for configuration ':app:developmentDebugRuntimeClasspath'.
   > Failed to transform concurrent-futures-1.2.0.jar (androidx.concurrent:concurrent-futures:1.2.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.

Environment :

 Kotlin version: 1.9.25
 Flutter version: 3.22.2
 native_geofence: 1.0.3
@orkun1675
Copy link
Contributor

Hi @ribesh-code what version of Gradle are you running? You can see your Gradle version in android/gradle/wrapper/gradle-wrapper.properties and your Android Gradle Plugin version in android/build.gradle's classpath 'com.android.tools.build:gradle:xxx line.

I believe the error you are seeing might mean that your Gradle version is old. Are you able to upgrade your Gradle?

The latest Android Gradle Plugin version can be found here: https://mvnrepository.com/artifact/com.android.application/com.android.application.gradle.plugin --> which is 8.7.3 at the time of writing this. This requires Gradle 8.9 per the instructions here.

If you are unable to upgrade Gradle I can look into downgrading the min Gradle requirement of the plugin.

@ribesh-code
Copy link
Author

Hi @orkun1675,
Sorry for the late reply, and thank you for your help! 🙇

After upgrading my Gradle version as suggested, the build issue was resolved. However, I encountered an issue with my current Java version (Java 21) after switching to Java 17 the app ran successfully.

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

2 participants