Need to accept license agreement for Android tools?

android

#1

Keep getting this. Didn’t have any issues on friday and builds were going fine. Nothing has changed.

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

Any ideas?


Licences for Android build tools not accepted
#2

@VicV id you find a fix for this? Just upgraded to a newer support lib and am having the same problem.


#3

Hmm - but it seems intermittent. Sometimes it happens and other times it does not…


#4

I think I’ve found the root cause of this. I had updated a library version in my build.gradle, but I had not updated the pre section of my circle.yml file to fetch the corresponding files. Hence, this message was really saying: “You don’t have these libs”, rather than “you haven’t agreed to the license”.

Note, this is a great summary of how to download the needed files while also caching them: Android SDK Support Library 24


Problem in Build Android (SDK Licnse)
#5

Hi! Faced to the same issue.

  • What went wrong:
    A problem occurred configuring project ‘:app’.

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

Solution from the mentioned topic didn’t help.


#6

Hey @KChernenko, the link you provided was for an older version of the Android Support Repository. You’d have to do something like this (the same as the previous but with updated versions):

dependencies:
  pre:
    # Android SDK Platform 25
    - if [ ! -d "/usr/local/android-sdk-linux/platforms/android-25" ]; then echo y | android update sdk --no-ui --all --filter "android-25"; fi
    # Android SDK Build-tools, revision 25.0.0
    - if [ ! -d "/usr/local/android-sdk-linux/build-tools/25.0.5" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-25.0.5"; fi
    # Android Support Repository, revision 39 / Local Maven repository for Support Libraries
    - if [ ! -d "/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/design/25.0.0" ]; then echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"; fi
    

  cache_directories:
    - /usr/local/android-sdk-linux/platforms/android-25
    - /usr/local/android-sdk-linux/build-tools/25.0.0
    - /usr/local/android-sdk-linux/extras/android/m2repository

#7

It doesn’t work for me neither :-/


#9

Any ETA on when this will get fixed? Considering purchasing CircleCI but this is definitely a non starter. The proposed pre cache_directories workaround seems to not work when you use the new constraint libraries. I get the error below now. These license files should be included on the image to solve this problem.

  • What went wrong:
    A problem occurred configuring project ‘:app’.

You have not accepted the license agreements of the following SDK components:
[Solver for ConstraintLayout 1.0.0-beta4, ConstraintLayout for Android 1.0.0-beta4].
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


#10

Same issue here!


#12

The solution that works for me is:

Regards


Problem with building for android O(api 26)
Issues with Android Build and SDK Licenses
#13