LoginSignup
5
0

More than 1 year has passed since last update.

flutter doctor コマンド時の Android toolchain に関するエラー

Last updated at Posted at 2022-05-15

-環境
Flutter 3.0.0
Android Studio Chipmunk | 2021.2.1

-エラー
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
X cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
image.png

-対応
Android Studio から Command-line tool をインストールする

  1. Android Studio から SDK manager 起動
    image.png

  2. SDK Tools から Android SDK Command-line tool を選択
    image.png

  3. apply
    image.png

  4. エラーが出ていなければ解消
    ※ license のエラーは別途対応要
    [!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
    image.png

5
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
5
0