Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWit

269 阅读1分钟

Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'.

解决办法:github.com/flutter/flu…

If you've encountered issues after upgrading to Android Studio LadyBug, here's how you can resolve them:

  1. 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
      
  2. 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.