0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Java binary atに表示されたJDKパスがAndroid Studio内包のJDKを参照している場合の対処

Posted at

Flutterの

flutter doctor -v  

を実行して下記部分の

Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java

参照パスがAndroid Studio内包のJDKを参照している場合、
下記コマンドで参照先を変更できる。

flutter config --jdk-dir [JDKのパス]

実行後に下記コマンドを実行する。

flutter config --list

jdk-dir: に設定したパスが表示されれば設定できている。

  enable-web: (Not set)
  enable-linux-desktop: (Not set)
  enable-macos-desktop: (Not set)
  enable-windows-desktop: (Not set)
  enable-android: (Not set)
  enable-ios: (Not set)
  enable-fuchsia: (Not set) (Unavailable)
  enable-custom-devices: (Not set)
  cli-animations: (Not set)
  enable-native-assets: (Not set) (Unavailable)
  enable-flutter-preview: (Not set) (Unavailable)
  enable-swift-package-manager: (Not set) (Unavailable)
  jdk-dir: C:\jdk-17.0.2
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?