由于许可证,在Jenkins上构建Android失败 [英] Build Android on Jenkins failed due to licenses

查看:51
本文介绍了由于许可证,在Jenkins上构建Android失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have an app which is built with success when I use command assemble, etc... Everything works fine. I decided to use Jenkins, but I have an error on build which says :

* 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的构建工具,并且在Jenkins上使用命令 android update sdk --no-ui --filter the_index_to_update

I'm using build tools version 25.0.0, and I updated SDK with last version on Jenkins with command android update sdk --no-ui --filter the_index_to_update

那怎么了?

推荐答案

就像Google在这里所说的:

So as Google says here: Auto-download missing packages with Gradle

您可以将本地许可证复制到遥控器.因此,现在它可以正常工作了,对我来说太糟糕了,当我在远程上更新sdk时不知道该怎么做...

You can copy your local license to the remote. So now it's working, just too bad for me to not know how to do when updating sdk on the remote...

这篇关于由于许可证,在Jenkins上构建Android失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆