背景
安装flutter doctor遇到如下问题
[✗] Android toolchain - develop for Android devices
✗ ANDROID_HOME = /Users/wps/Library/Android/android-sdk
but Android SDK not found at this location.
SDK路径也是对的,怎么百度都找不到原因,后来去Andriod--->preferences--->Android SDK--->SDK Tools下载Android SDK Platform-Tools后解决。如下图:
终端执行flutter doctor --android-licenses,一路输入y,最后再次输入flutter doctor,提示如下
安装成功