Newer than known valid Java version (21.0.5), gradle (7.6.3). Treating as valid configuration. The configured version of Java detected may conflict with the Gradle version in your new Flutter app. [RECOMMENDED] If so, to keep the default Gradle version 7.6.3, make sure to download a compatible Java version (Java 11 <= compatible Java version < Java 20). You may configure this compatible Java version by running: `flutter config --jdk-dir=<JDK_DIRECTORY>` Note that this is a global configuration for Flutter.
Flutter版本3.22.0 AS2024.3.1 低版本的Flutter高版本的AS会出现这个题目
办理方法就是:Java 11 <= compatible Java version < Java 20
下载安装jdk 下令设置
flutter config --jdk-dir="/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home"
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |