我只是想在Jenkins上构建一个简单的android项目,SDK的所有内容都安装在下面的图片中
但是Jenkins在这个日志中失败了
Observed package id 'tools' in inconsistent location 'C:\Users\Administrator\AppData\Local\Android\sdk\tools' (Expected 'C:\Users\Administrator\AppData\Local\Android\sdk\tools\tools')
Checking the license for package Android SDK Build-Tools 29.0.1 in C:\Users\Administrator\AppData\Local\Android\sdk\tools\licenses
Warning: License for package Android SDK Build-Tools 29.0.1 not accepted.
Checking the license for package Android SDK Platform 29 in C:\Users\Administrator\AppData\Local\Android\sdk\tools\licenses
Warning: License for package Android SDK Platform 29 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;29.0.1 Android SDK Build-Tools 29.0.1
platforms;android-29 Android SDK Platform 29
我还在Jenkins配置上指定了SDK路径
为什么Jenkins搜索sdk/tools/tools下的内容?
发布于 2019-07-21 20:49:28
这只是一个警告;杀死构建的是未被接受的许可证。
我怀疑settings.gradle
中的值是导致此行为的原因。
https://stackoverflow.com/questions/57133169
复制相似问题