LoginSignup
1
1

More than 1 year has passed since last update.

【Flutter】 Windowsでのflutter docker「Unable to find bundled Java version.」の修正

Posted at

概要

WindowsでFlutter環境構築をしていたら、flutter docker実行に「Unable to find bundled Java version.」というエラーが出てました。

>flutter doctor
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version
    10.0.19045.2486], locale ja-JP)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.4)
[!] Android Studio (version 2022.1)
    X Unable to find bundled Java version.
[√] VS Code (version 1.74.3)
[√] Connected device (3 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.

直す方法を調べてみるとMac向けの方法は見つかるものの、Windows向けの方法がなかなか見つからなかったので、備忘録として修正方法を記事に残します。

修正方法

cd C:\Program Files\Android\Android Studio
rmdir /S /Q jre
mklink /D "jre" "jbr"

参考

参考にさせていただいたのは以下issuesです。(というか答え)
https://github.com/flutter/flutter/issues/106674

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1