Scene introduction:
Other projects are still using java8 and don't want to upgrade to java11.
Solution:
1: Download java11 jdk and put it in the folder
as the picture shows:
2: Add under gradle.properties under the Flutter project
org.gradle.java.home=F:/java11/jdk-11.0.16_windows-x64_bin/jdk-11.0.16
as the picture shows:
Summarize:
This means that each project must add a JDK environment