当我想要构建我的项目时,它会给我带来这个错误
Checking the license for package Android SDK Build-Tools 23.0.1 in C:\Users\ASUS\AppData\Local\Android\Sdk\tools\licenses
Warning: License for package Android SDK Build-Tools 23.0.1 not accepted.
Checking the license for package Android SDK Platform 23 in C:\Users\ASUS\AppData\Local\Android\Sdk\tools\licenses
Warning: License for package Android SDK Platform 23 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 23, Android SDK Build-Tools 23.0.1].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
但我尝试将许可证forder添加到sdk路径它没有工作。我更新了我的所有skd平台和sdk工具。但我仍然得到这个错误。我可以解决这个问题。
答案 0 :(得分:0)
使用Android工具中的android.bat并使用它来安装所有依赖项。下载/安装时,系统会要求您接受许可。