When I build a project in flutter it is asking me about update to java 11 , i have jdk 14 istalled , how to fix it in vs code

Viewed 32

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.

1 Answers

If you are using Android Studio in Settings->Build,Execution Deployment->Build Tools->Gradle change to Java 1.8

Related