Open yogeshmarathe2012 opened 4 weeks ago
When running ./gradlew build
Task :connectivity_plus:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
Could not resolve all files for configuration ':connectivity_plus:androidJdkImage'. Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. Execution failed for JdkImageTransform: /Users/abdullah/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar. Error while executing process /Users/abdullah/Library/Java/JavaVirtualMachines/openjdk-22.0.2/Contents/Home/bin/jlink with arguments {--module-path /Users/abdullah/.gradle/caches/8.10/transforms/220a566e225b85a04fa6bc2df003361f-0e2c6523-a3ad-4115-9539-8a81a8f4e2c4/transformed/output/temp/jmod --add-modules java.base --output /Users/abdullah/.gradle/caches/8.10/transforms/220a566e225b85a04fa6bc2df003361f-0e2c6523-a3ad-4115-9539-8a81a8f4e2c4/transformed/output/jdkImage --disable-plugin system-modules}
The ticket is missing the complete flutter doctor -v
report. flutter doctor
is not enough, you have to run it with the -v
option.
This doesn't look like a plugin bug but a configuration issue in your project.
Searching for Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20.
suggests for the following solution: https://stackoverflow.com/a/57025919
You can also paste here your gradle files maybe someone can spot an issue in them.
Platform
Android 14
Plugin
connectivity_plus
Version
6.0.3
Flutter SDK
3.24.0
Steps to reproduce
i upgraded the flutter to latest version then i ran the project and project will reproduce the same error.
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean