BItbucket pipelines: Android build fails because of missing licenses. How to add them ?

Kushtrim Pacaj October 22, 2016

I can't build my android project because of missing licenses. How do I add them ?
The error i:

 

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

1 answer

4 votes
Melwin M October 23, 2016

The following pipeline steps works for me (Found here: 

http://stackoverflow.com/questions/38096225/automatically-accept-all-sdk-licences) 

 

# Accept all licences 
          - mkdir -p "$ANDROID_HOME/licenses"
          - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
          - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
asbadve March 10, 2018

can i get you full setup yml file upto only installing the sdk.

david_montecillo April 7, 2018

this doesnt work

Eldar Traistor December 4, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events