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?

More than 3 years have passed since last update.

flutter docter で "cmdline-tools component is missing" と言われた時の対処方法

Posted at

現象

$ flutter doctor 実行時に以下のようなログが出力された

$ flutter doctor
...
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
...

環境

  • Flutter: 2.8.1_stable
  • MacOS: 10.15.7
  • Android Studio: 4.0.1

対処方法

Android Studio > Configure > SDK Manager > SDK Tools にて
Android SDK Command-line Tools (latest) (cmdline-tools;latest)
にチェックを入れてインストールする。 (下図参照)

Screenshot_2022-01-27_17.24.55.png

検証方法

再度 $ flutter doctor を実行して
cmdline-tools component is missing が出力されなければ ok です。

$ flutter doctor
...
[✓] Android toolchain - develop for Android devices (Android SDK version 30.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?