在使用Android Studio版本3.0使用Flutter Doctor 3.0时,您可能会遇到错误消息“无法找到Bundled Java版本。”如果您的Java版本是最新的,并且系统上没有较旧的Android Studio安装,这可能会特别令人困惑。 To resolve this issue, follow the steps outlined below:
Set the JAVA_HOME path as per this指南。运行以下命令:
cd/applications/android \ studio \ studio.app/contents/jbr ln -s ../jbr jdk ln -s“/library/Internet插件/javaappletplugin.plugin” folder and create a new folder called "jre"cd /Applications/Android\ Studio.app/Contents/jbr ln -s ../jbr jdk ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk
用macOS用户名替换“用户名”,然后运行:
如果问题持续存在,请考虑以下方法:免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3