I hope everyone is doing well. I have updated my android studio today from koala drop feature to latest version Meerkat. In previous version my project was running smoothly without any error but when i updated to latest version of android studio my project is not running. Here is the error I'm encountering. I have JDK 17 and I set CompileSdk to 35 but still no solution found. I have tried by many ways but still no success. `Launching lib\main.dart on sdk gphone x86 in debug mode... Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'.
Could not resolve all files for configuration ':flutter_plugin_android_lifecycle:androidJdkImage'. Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, .gradle.libraryelements=jar, .gradle.usage=java-runtime}. > Execution failed for JdkImageTransform: D:\Android\platforms\android-35\core-for-system-modules.jar. > Error while executing process D:\AndroidStudio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\Microsoft.gradle\caches\transforms-3\291f276a94cea6743b33cc7b0cfd9380\transformed\output\temp\jmod --add-modules java.base --output C:\Users\Microsoft.gradle\caches\transforms-3\291f276a94cea6743b33cc7b0cfd9380\transformed\output\jdkImage --disable-plugin system-modules}
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at .
BUILD FAILED in 6s Error: Gradle task assembleDebug failed with exit code 1 `
I hope everyone is doing well. I have updated my android studio today from koala drop feature to latest version Meerkat. In previous version my project was running smoothly without any error but when i updated to latest version of android studio my project is not running. Here is the error I'm encountering. I have JDK 17 and I set CompileSdk to 35 but still no solution found. I have tried by many ways but still no success. `Launching lib\main.dart on sdk gphone x86 in debug mode... Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'.
Could not resolve all files for configuration ':flutter_plugin_android_lifecycle:androidJdkImage'. Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, .gradle.libraryelements=jar, .gradle.usage=java-runtime}. > Execution failed for JdkImageTransform: D:\Android\platforms\android-35\core-for-system-modules.jar. > Error while executing process D:\AndroidStudio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\Microsoft.gradle\caches\transforms-3\291f276a94cea6743b33cc7b0cfd9380\transformed\output\temp\jmod --add-modules java.base --output C:\Users\Microsoft.gradle\caches\transforms-3\291f276a94cea6743b33cc7b0cfd9380\transformed\output\jdkImage --disable-plugin system-modules}
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle..
BUILD FAILED in 6s Error: Gradle task assembleDebug failed with exit code 1 `
Share Improve this question asked Mar 21 at 13:02 Ramesh RajaRamesh Raja 111 bronze badge1 Answer
Reset to default 1Have you tried opening the Android project from Android Studio to see what more details it offers?
I had a similar error with android_lifecycle, and I fixed it by specifically adding where my java version was located, in android/gradle.properties add this
.gradle.java.home=/Users/Fox/.sdkman/candidates/java/java-21
With your Java location, I hope I have helped you.