gpt4 book ai didi

android - 由于许可证,在 Jenkins 上构建 Android 失败

转载 作者:行者123 更新时间:2023-11-29 01:15:06 25 4
gpt4 key购买 nike

我有一个应用程序,当我使用命令 assemble 等时成功构建...一切正常。我决定使用 Jenkins,但构建时出现错误:

* What went wrong:
25 A problem occurred configuring project ':app'.
26 > You have not accepted the license agreements of the following SDK components:
27 [Android SDK Build-Tools 25].
28 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.

我使用的是构建工具版本 25.0.0,我使用命令 android update sdk --no-ui --filter the_index_to_update 在 Jenkins 上用最新版本更新了 SDK

那怎么了?

最佳答案

正如谷歌在这里所说:Auto-download missing packages with Gradle

您可以将本地许可证复制到远程。所以现在它可以工作了,对我来说太糟糕了,在远程更新 sdk 时不知道该怎么做......

关于android - 由于许可证,在 Jenkins 上构建 Android 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40306201/

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