* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
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
windows下处理方法:
1、控制台到Android sdk的安装目录,例如默认目录(C:\Users\xxx\AppData\Local\Android\Sdk\tools\bin)
2、输入sdkmanager --licenses

上面就是有5个证书没有接受的意思,依次输入y即可
本文详细介绍了在构建Android项目时遇到的SDK许可未接受问题及其解决方案。通过在控制台使用sdkmanager --licenses命令,可以逐一接受缺失的许可证,确保项目的顺利构建。

1650

被折叠的 条评论
为什么被折叠?



