flutter doctorコマンドを実行時に「Unable to locate Android SDK.」というエラーが出た時の対処法

Flutter
 

環境

macOS Big Sur Version 11.5.2
Flutter 2.2.3
Xcode 12.5.1
Android Studio Arctic Fox | 2020.3.1 Patch 1

問題と原因

「flutter doctor」コマンド入力時に以下のようなエラーが出力された。

Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.

どうやらこのmac内にAndroidStudioを導入する必要があるみたい。

解決策

上記にアクセスしてAndroidStudioをダウンロードした。

その後ダウンロードされた、.dmgファイルを開いて設定を進めていった。

設定の際のパラメータは全てデフォルトで通せばなんとかなると思います。

おわり

コメント

タイトルとURLをコピーしました