3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Flutter環境構築】Unable to find bundled Java version. エラーの解決方法【MacBook Air (M1, 2020)】

Posted at

flutter doctor で "Unable to find bundled Java version."ってエラー出る

ここだけエラー消えない(´・ω・`)

% flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.3.1 20E241 darwin-arm, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (version 2020.3)
    ✗ Unable to find bundled Java version.
[✓] VS Code (version 1.58.2)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

解決方法

コマンドこれ打ったら解決した

% cd /Applications/Android\ Studio.app/Contents/jre
% ln -s ../jre jdk
% ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk
% flutter doctor -v

参考にしたサイト

Flutter環境構築

とってもわかりやすい

今回のエラー

どんぴしゃの質問&回答
これによるとJAVA_HOMEも設定しないといけないらしいんだけど、
私のはJAVA_HOME設定しなくてもいけた(´ω`)

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?