windows配置flutter 遇到的问题及解决办法
1)Android license status unknown.
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
X Android license status unknown.
使用flutter doctor --android-licenses命令
2)A newer version of the Android SDK is required. To update, run:
A newer version of the Android SDK is required. To update, run:
android-sdk\tools\bin\sdkmanager --update
按命令执行更新,如果出现错误,请保证你的java版本大于1.8(java8)
这步骤耗时比较久
如果遇到Warning: An error occurred during installation: Failed to move away or delete existing target file: D:\android-sdk\tools
Move it away manually and try again..
done
把sdk下tools文件夹命名为tool,执行android-sdk\tool\bin\sdkmanager --update(ps:tools下的.install文件夹非常大,可以移动到执行命令后自建tools目录下,节省下载时间)
完成后,再执行flutter doctor --android-licenses