android studioを最新版にアップデートしてdoctorを走らせると以下のようなエラーが発生した.
[√] Flutter (Channel stable, 3.7.3, on Microsoft Windows [Version 10.0.19043.1645], locale ja-JP)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.1)
[!] Android Studio (version 2022.1)
X Unable to find bundled Java version.
[√] VS Code (version 1.75.1)
[√] Connected device (3 available)
[√] HTTP Host Availability
その対策法が
Unable to find bundled Java version
に書いてあったので説明する.
- C:\Program Files\Android\Android Studioを開く
- jreフォルダにjbrフォルダをコピペする
- ターミナルを再起動してもう一回flutter doctorをする
以上の手順でエラーは解消された.
[√] Flutter (Channel stable, 3.7.3, on Microsoft Windows [Version 10.0.19043.1645], locale ja-JP)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.1)
[√] Android Studio (version 2022.1)
[√] VS Code (version 1.75.1)
[√] Connected device (3 available)
[√] HTTP Host Availability
最近のAndroid Studioで起きているエラーらしい.