gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 06:01:33 26 4
gpt4 key购买 nike

  • 出了什么问题:
    配置项目':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/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com