Flutter java.lang.module.FindException:未找到模块 java.se.ee [英] Flutter java.lang.module.FindException: Module java.se.ee not found
问题描述
当我尝试在 android studio 中运行默认的 Flutter 应用程序时遇到这个错误:
I encounter this error when trying to run default flutter app in android studio :
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)是:
The java version (java -version on cli) i have is :
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
Os : mac os Big Sur 11.3.1
在执行 flutter doctor --android-licenses
时,它输出我 不可能加载主类 java.se.ee
When doing flutter doctor --android-licenses
it outputs me impossible to load main class java.se.ee
请问怎么解决?我已经在谷歌上搜索了解决方案,但没有成功.
How to solve this please? i have already searching solutions on google without success.
推荐答案
我通过重新安装 Android SDK 命令行工具
进入android studio设置,点击两次Android SDK Command-line Tools
的复选框重新安装.
Go to the android studio settings, click two times on the checkbox of Android SDK Command-line Tools
to reinstall it.
这篇关于Flutter java.lang.module.FindException:未找到模块 java.se.ee的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!