new version of flutter only worked with open-jdk, not oracle java. it worked with java 11 but not with java 14. or it worked with 14 if I set gradle manually to version > 6.
Read moreWhat version of Java does Flutter use?
Requirements to create Flutter project
Read moreCan you use Java in Flutter?
Flutter uses a flexible system that allows you to call platform-specific APIs in a language that works directly with those APIs: Kotlin or Java on Android.
Read moreDo you need JDK for Flutter?
If you do not have the JDK software installed or if JAVA_HOME is not set, then Flutter will give this error message.
Read moreDoes flutter support java 11?
Linux – default java version is 8, set 11 for Flutter .
Read moreHow do I update my java version in flutter?
Go to File > Project Structure. Select the SDK Location section in the list of the left. Deselect the Use embedded JDK (recommended) option. Enter the absolute path of your installed JDK in the text box.29 Mar 2021
Read moreWhich java version do I need for Android Studio?
Set the JDK version A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and this is the JDK version we recommend you use for your Android projects.
Read more