jenkins - 我在 Jenkins 上运行时显示gradle错误

标签 jenkins gradle

  • 出了什么问题:
    配置项目':app'时发生问题。

    You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 23.0.3]. 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

  • 尝试:
    使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行,以获取更多日志输出。

  • 建立失败

    总时间:4分钟22.387秒
    生成步骤“Invoke Gradle脚本”将生成结果更改为“失败”
    构建步骤“Invoke Gradle脚本”将构建标记为失败
    归档 Artifact
    完成:失败

    当我在Windows机器上构建 Jenkins 时,出现此错误。那么我该如何接受许可并解决以上问题

    最佳答案

    您是否尝试过使用新的sdkmanager更新您的SDK?您只需要在有问题的计算机上运行一次就可以接受给定版本的许可证。

    https://developer.android.com/studio/command-line/sdkmanager.html#usage

    您也可以使用此工具附带的GUI。有关更多信息,请参见以下问题:

    https://superuser.com/questions/1161536/android-bat-brings-up-sdk-manager-gui-why-is-sdkmanager-bat-needed

    关于jenkins - 我在 Jenkins 上运行时显示gradle错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41360988/

    相关文章:

    jenkins - 如何自定义 Jenkins 主题?

    jenkins - Sonar 运行器授权错误

    linux - 无法连接到 redhat linux 上的 Jenkins 服务器

    gradle - 在 gradle 中添加外部项目依赖

    android-studio - 无法加载类 'groovy.lang.GroovyObject'

    Android:强制gradle只包含一个版本的库

    jenkins - 返回sonarqube的结果

    amazon-web-services - 如何使用 aws codebuild 来构建大型 java 工件和 docker 镜像来提高 jenkins 性能?

    Android Studio 发布本地库

    android-studio - Gradle 不 build