本文主要是介绍Mac Android Studio Arctic Fox 2020.3.1升级后flutter项目适配,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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项目,已能正常运行
这篇关于Mac Android Studio Arctic Fox 2020.3.1升级后flutter项目适配的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!