在使用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