You need Java 11 or higher to build your app with this version of Gradle.
To get Java 11, update to the latest version of Android Studio on https://developer.android.com/studio/install .
To check the Java version used by Flutter, run
flutter doctor -v
.
If you are using Android Studio in Settings->Build,Execution Deployment->Build Tools->Gradle change to Java 1.8
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.