简体   繁体   中英

Flutter Doctor can't find Android SDK

I recently downloaded Android Studio 4.1 to learn how to code in dart with flutter. the flutter doctor command generates errors, despite the fact that all android sdks are up to date.I have already installed the flutter and dart plugins on Android studio, but same problem. I need help please. problem's image

I solved this problem by below step,

  1. go to -> system environment -> Environment Variables -> system Variable

  2. create New Variable Name ANDROID_HOME and Value D:\\Androidsdk\\tools (custom android sdk path).

  3. concat this path D:\\Androidsdk\\platform-tools in Path variable value using ";". (also in system Variable)

  4. that's all, Restart the PC to apply changes and try again -- flutter Doctor.

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