LoginSignup
11
4

More than 3 years have passed since last update.

flutter doctor で Android license status unknown.

Posted at

原因

ライセンスに同意していないと出る。同意すればOK。

対策

flutter doctor --android-licenses

を実行して、すべて y と答えればよい。

最後に

All SDK package licenses accepted

と表示されたらOK。

SDKが入っていない場合はインストールする。

flutter doctor --android-licenses

の実行で

Android sdkmanager tool not found (C:\Users\yamato\AppData\Local\Android\sdk\tools\bin\sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.
PS C:\Users\yamato\develop>

のように出る場合は、下記を実行する。

  • Android Studio を起動する。

  • ファイル>設定>システム設定>Android SDK に進む。

  • 「SDKツール」タブをクリックする。

  • Android SDK Build-Tools にチェックを入れる。

  • Android SDK Platform-Tools にチェックを入れる。

  • Android SDK Command-line Tools にチェックを入れる。

  • 「適用」を押す。

  • 「要求されたコンポーネントのインストール中」になる。

  • 「完了」を押す。

  • Android Studio を終了する。

image.png

この状態で

flutter doctor --android-licenses

を実行する。

11
4
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
11
4