ejay
ejay

Reputation: 1144

Build Android on Jenkins failed due to licenses

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.

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

So what is wrong ?

Upvotes: 2

Views: 3051

Answers (1)

ejay
ejay

Reputation: 1144

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

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...

Upvotes: 1

Related Questions