Android SDK not found at this location.

背景

安装flutter doctor遇到如下问题
[✗] Android toolchain - develop for Android devices
✗ ANDROID_HOME = /Users/wps/Library/Android/android-sdk
but Android SDK not found at this location.

Flutter doctor

SDK路径也是对的,怎么百度都找不到原因,后来去Andriod--->preferences--->Android SDK--->SDK Tools下载Android SDK Platform-Tools后解决。如下图:


Preferences for New Projects

终端执行flutter doctor --android-licenses,一路输入y,最后再次输入flutter doctor,提示如下

flutter doctor

安装成功

你可能感兴趣的:(Android SDK not found at this location.)