arduino

Mac 上的 Flutter doctor 檢查has been compiled by a more recent version of the Java Runtime

 Android license status unknown.

      Run `flutter doctor –android-licenses` to accept the SDK licenses.

      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details

當你輸入 ‘flutter doctor –android-licenses‘ 時,發生錯誤

has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

就是因為你應該被騙安裝了Android SDK Command-line Tools 版本11了(或是可能安裝到最新版本latest之類),實際上如果你需要java11的話,應該是要安裝Android SDK Command-line Tools 版本8才行,對應才會是55.0的Java Runtime

這件事情我已經搞錯三次了…. 每次都忘記

Be the First to comment.

Leave a Comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

(若看不到驗證碼,請重新整理網頁。)