Android license status unknown. が発生した
flutter doctor を実行したときにAndroid license status unknown.エラーが発生しました。
✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
状況によっては、こちらの警告に変わっている場合もあるかもしれません。
[!] Android toolchain - develop for Android devices (Android SDK version 32.0.0) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
今回は、このエラーおよび警告の対処です。
Android license status unknown の対処
こちらの原因は、Android License の認証ができていないこと。
なので、コメント通りコマンドを実行してみます。
flutter doctor --android-licenses
そうすると、色々利用規約が出てきて許可を求められますが、大体Yesで突破。
処理が完了したところで、flutter doctor で再検証します。
無事にエラー・警告がなくなりました。
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.5.2 20G95 darwin-x64, locale ja-JP) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.63.2) [✓] Connected device (1 available) • No issues found!
コメント