AS在导入项目时,出现报错:ERROR: Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-28 Android SDK Platform 28
build-tools;28.0.2 Android SDK Build-Tools 28.0.2
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
Using Android SDK: I:\SDK
用了这位兄台的方法,成功解决
https://blog.csdn.net/qq_34817440/article/details/100060319
1.首先cmd 进入到安装SDK的tools/bin目录下
2.执行命令sdkmanager --license 更新 license 文件,执行过程需要多次确认,全部y执行到底
3.重新刷新一下android studio