Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Kushtrim Pacaj
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 10, 2018

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

david_montecillo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2018

this doesnt work

Eldar Traistor
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 4, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events