为什么 Jenkins 在不同的文件夹中搜索 Android 个 SDK 工具?

Why Jenkins Search Android SDK Tools In Different Folder?

我只是想在 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 下的东西?

这只是一个警告;破坏构建的是许可证未被接受。

我怀疑 settings.gradle 中的值是导致此行为的错误。