当我尝试在 android studio 中运行默认的 Flutter 应用程序时遇到这个错误:
Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.se.ee not found
Exception: Gradle task assembleDebug failed with exit code 1
我拥有的 java 版本(cli 上的 java -version)是:
java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.291-b10, mixed mode)
操作系统:mac os Big Sur 11.3.1
执行 flutter doctor --android-licenses
时它输出我 impossible to load main class java.se.ee
请问怎么解决?我已经在谷歌上搜索了解决方案,但没有成功。