Problem is
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, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: /Users/app-dev/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar.
> Error while executing process /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/jlink with arguments {--module-path /Users/app-dev/.gradle/caches/transforms-3/0386355a4d0e21a31414611316f69c96/transformed/output/temp/jmod --add-modules java.base --output /Users/app-dev/.gradle/caches/transforms-3/0386355a4d0e21a31414611316f69c96/transformed/output/jdkImage --disable-plugin system-modules}
Solution for Android Studio LadyBug Upgrade Issues
If you've encountered issues after upgrading to Android Studio LadyBug, here's how you can resolve them:
- Modify settings.gradle File:
- Under the plugins section in your settings.gradle file, add the following line:id "com.android.application" version "8.3.2" apply false
- Gradle Plugin Error:
- If you encounter any errors related to the Gradle plugin version, update your gradle-wrapper.properties file with the following:distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
After making these changes, clean and rebuild your project to ensure everything compiles correctly.
if you face this issue
android {
ndkVersion = "25.1.8937393"
...
}
then it remove.
android {
// ndkVersion = "25.1.8937393"
...
}