Mac电脑升级Android Studio Arctic Fox 2020.3.1版本后,flutter项目执行发现错误:
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module
终端执行flutter doctor,发现Android studio报出问题:Unable to find bundled Java version
处理方式:
cd /Applications/Android\ Studio.app/Contents/jre
ln -s ../jre jdk
ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk
终端执行flutter doctor,
此时运行flutter项目,已能正常运行