」工欲善其事,必先利其器。「—孔子《論語.錄靈公》
首頁 > 程式設計 > 為什麼在Android Studio上報告了“無法找到捆綁的Java版本\”的Flutter Doctor \我該如何修復?

為什麼在Android Studio上報告了“無法找到捆綁的Java版本\”的Flutter Doctor \我該如何修復?

發佈於2025-03-23
瀏覽:734

Why is Flutter Doctor Reporting \在使用Android Studio版本3.0使用Flutter Doctor 3.0時,您可能會遇到錯誤消息“無法找到Bundled Java版本。”如果您的Java版本是最新的,並且系統上沒有較舊的Android Studio安裝,這可能會特別令人困惑。 To resolve this issue, follow the steps outlined below:

For macOS Users:

JetBrains Runtime "Android Studio Electric Eel":

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"
  1. Copy the contents of the "JetBrainsRuntime" folder into the "jre" folder
  2. Run "flutter doctor -v" to verify if the issue is resolved.
    cd /Applications/Android\ Studio.app/Contents/jbr
    ln -s ../jbr jdk
    ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk
Other JetBrains Runtime版本:
    運行以下命令:
  • cd/applications/android \ studio.app/contents/jre ln -s ../ jre jdk ln -s“/library/Internet插件/javaappletplugin.plugin” jdk

    用macOS用戶名替換“用戶名”,然後運行:

    如果問題持續存在,請考慮以下方法:
    最新教學 更多>

    免責聲明: 提供的所有資源部分來自互聯網,如果有侵犯您的版權或其他權益,請說明詳細緣由並提供版權或權益證明然後發到郵箱:[email protected] 我們會在第一時間內為您處理。

    Copyright© 2022 湘ICP备2022001581号-3