报错的问题
来源:2-1 创建项目
慕的地4004788
2019-07-20 15:45:27
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
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: E:\Android studio\Androidstudio
1回答
irista23
2019-07-21
你试下打开命令行,进入到报错的sdk目录(参考第一行cd指令),找到可以处理licences的文件,输入类似如下命令
cd C:\Users\17720\AppData\Local\Android\SDK
cd tools
cd bin
这时该目录下会有一个windows批处理文件sdkmanager,用这个来解决问题,调用命令
sdkmanager --licenses
然后一路同意,全部选yes,再到Android studio里build一下~
相似问题