简体   繁体   中英

Android sdk file not found after running flutter doctor

The error on cmd says android SDK file not found: C:\Users\Me\AppData\Local\Android\Sdk\build-tools\29.0.3 after running flutter doctor on flutter console.

Android Studio seems to work fine.

my sdk is located at C:\Users\Me\AppData\Local\Android\Sdk\extras

What could be a solution to this?

在此处输入图像描述

If Android studio is working fine but your command line is not, the issue is likely your Path variables. Check out the "Update Your Path" section of the Windows installation tutorial.

It is simple. Follow these three steps to solve the issue.

  • Open SDK Manager
  • Select Android SDK Build-Tools and uninstall it.
  • Then reinstall the required SDK Build-Tools version (in your case 29.0.3)

That's all. 在此处输入图像描述

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