Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'.
If you've encountered issues after upgrading to Android Studio LadyBug, here's how you can resolve them:
-
Modify
settings.gradleFile:-
Under the plugins section in your
settings.gradlefile, 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.propertiesfile 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.