安装VSCode,运行flutter项目,出现如下错误
Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
platforms;android-29 Android SDK Platform 29
To build this project, accept the SDK license agreements and install the missing components
using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see
http://d.android.com/r/studio-ui/export-licenses.html
解决:打开vscode的终端执行命令
flutter doctor --android-licenses
全部选择Y即可,再次运行解决