简体   繁体   中英

When I build a project in flutter it is asking me about update to java 11 for building android project

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM