解决flutter报错:Flutter requires Android SDK 28 and BuildTools
今天搭flutter环境时遇到这个报错:Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
找了一圈找到了正确的解决方案:
1- Android SDK version 28
Android Studio -> SDK Manager -> SDK Platforms tab -> 选择 Android 9.0 Pie 并安装
2- Android BuildTools version 28.0.3
Android Studio -> SDK Manager -> SDK Tools tab -> 选择右下角 Show Package Details -> 在 Android SDK Build-Tools 里选择 28.0.3 并下载
然后重启Android studio,再在cmd里输入命令即可