简体   繁体   中英

You need Java 11 or higher to build your app with this version of Gradle?

Was building app using flutter and vs code,I had not installed android studio can i know how to upgrade Java version OpenJDK Runtime Environment.

My java version

C:\Android\cmdline-tools\tools>java -version
java version "17" 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)

Version displaying in flutter doctor -v

• Android SDK at C:\Android\
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = C:\Android
• Java binary at: C:\Android\openjdk\bin\java
• Java version OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_202-b08)
• All Android licenses accepted.

This question is of the same kind.

The error here was I had not linked my java path to flutter SDK. You can know more about it at How to change java version for flutter package?

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