简体   繁体   中英

Error after running flutter doctor : Unable to locate Android SDK

I got these errors after installing flutter then running flutter doctor to check if the installation succeeded, Although I've installed both Android Studio and Android SDK in Android Studio's installation progress steps with no issues at all, what do I have to do now?

点击这里显示图片!

If you're using android studio, try these steps:

  1. Click Tools > SDK Manager.

  2. In the SDK Platforms tab, select Android 10 (29).

  3. In the SDK Tools tab, select Android SDK Build-Tools 29 (or higher).

  4. Click OK to begin install.

In case if above steps don't solve your problem then try updating the SDK path

flutter config --android-sdk <path-to-your-android-sdk-path>

Note: path must be enclosed within double quotes

"C:\Users\username\AppData\Local\Android\Sdk"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM