# Android 7.1(25) build problem

**URL:** <https://discuss.circleci.com/t/android-7-1-25-build-problem/7546>\
**Category:** Mobile\
**Tags:** android\
**Created:** [October 20, 2016, 7:39am UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546 "2016-10-20T07:39:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andoctorey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/andoctorey/32/813_2.png) [@Andoctorey](https://discuss.circleci.com/u/Andoctorey)\
**Post date:** [October 20, 2016, 7:39am UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/1 "2016-10-20T07:39:56Z")

</div>

Build failing because of:

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

It worked fine with android-24. My circle config:

> dependencies:  
> pre:  
> - ( sleep 5 && while [1]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --filter “tools,android-25,build-tools-25,platform-tools,extra-google-m2repository,extra-android-m2repository,extra-android-support,extra-google-google\_play\_services”

---

<div class="post-metadata">

**Author:** ![komakai](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@komakai](https://discuss.circleci.com/u/komakai)\
**Post date:** [October 24, 2016, 4:50am UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/2 "2016-10-24T04:50:57Z")

</div>

I am also hitting the same problem - have gone back to android-24 for now.

---

<div class="post-metadata">

**Author:** ![komakai](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@komakai](https://discuss.circleci.com/u/komakai)\
**Post date:** [October 24, 2016, 2:22pm UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/3 "2016-10-24T14:22:06Z")

</div>

Looking more closely at the 2nd line after the error:  
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](http://d.android.com/r/studio-ui/export-licenses.html)  
It appears there maybe a way round this problem by copying the relevant licence file directory - refer:  
[https://developer.android.com/studio/intro/update.html#download-with-gradle](https://developer.android.com/studio/intro/update.html#download-with-gradle)

---

<div class="post-metadata">

**Author:** ![thomaspsk](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thomaspsk/32/5109_2.png) [@thomaspsk](https://discuss.circleci.com/u/thomaspsk)\
**Post date:** [October 26, 2016, 4:07pm UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/4 "2016-10-26T16:07:54Z")

</div>

Adding this to the pre-dependency commands worked for me:

> if [! -d “/usr/local/android-sdk-linux/platforms/android-25”]; then echo y | android update sdk --no-ui --all --filter “android-25”; fi

---

<div class="post-metadata">

**Author:** ![Andoctorey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/andoctorey/32/813_2.png) [@Andoctorey](https://discuss.circleci.com/u/Andoctorey)\
**Post date:** [October 31, 2016, 12:26pm UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/5 "2016-10-31T12:26:30Z")

</div>

Doesn’t work for me. Do you use build-tools-25?

---

<div class="post-metadata">

**Author:** ![thomaspsk](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thomaspsk/32/5109_2.png) [@thomaspsk](https://discuss.circleci.com/u/thomaspsk)\
**Post date:** [October 31, 2016, 3:59pm UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/6 "2016-10-31T15:59:25Z")

</div>

I was on build tool 23.0.3. I have since updated to 25.

This should solve the issues you’re having:

> if [! -d “/usr/local/android-sdk-linux/platforms/android-25”]; then echo y | android update sdk --no-ui --all --filter “android-25”; echo y | android update sdk -u -a -t 3; fi

---

<div class="post-metadata">

**Author:** ![Andoctorey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/andoctorey/32/813_2.png) [@Andoctorey](https://discuss.circleci.com/u/Andoctorey)\
**Post date:** [November 15, 2016, 8:50am UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/7 "2016-11-15T08:50:45Z")

</div>

Found a problem, changed `build-tools-25` to `build-tools-25.0.0` and it started working.

---

<div class="post-metadata">

**Author:** ![komakai](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@komakai](https://discuss.circleci.com/u/komakai)\
**Post date:** [November 22, 2016, 7:25am UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/8 "2016-11-22T07:25:31Z")

</div>

> [@Andoctorey](#):
>
> Found a problem, changed build-tools-25 to build-tools-25.0.0 and it started working.

Thanks - that worked for me

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:33am UTC](https://discuss.circleci.com/t/android-7-1-25-build-problem/7546/9 "2018-06-18T11:33:33Z")

</div>

Closed on June 18, 2018, 11:33am UTC


