13
6

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 5 years have passed since last update.

flutter doctorで「✗ Android license status unknown.」が出た場合

Last updated at Posted at 2018-10-01

flutterやる時に以下が出たのでメモ。

$ flutter doctor
・・・
✗ Android license status unknown.
・・・

こうなった場合は、以下のコマンドで対応できます。

$ flutter doctor --android-licenses

その前にそもそもJDKを入れていない場合は、入れます。

自分はSDKMAN!で入れます。

$ curl -s "https://get.sdkman.io" | bash

以下のbash_profileを書き換えるシェルを呼べば、SDKMAN!は利用できるようになります。

$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ source ~/.bash_profile

JDKをインストール

$ sdk install java 8.0.181-zulu
$ source ~/.bash_profile

SDKを取得。

$ ~/Library/Android/sdk/tools/bin/sdkmanager --update

これで終わり。

$ flutter doctor --android-licenses 
13
6
1

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
13
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?