Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do successfully accept android sdk licence?

Jonathan Richards January 6, 2021

Hi i am trying to build my android project in bitbucket pipeline using the 

bitbucketpipelines/android-ci-image

 But i keep getting an error below:

 

```

 What went wrong:Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.> Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;30.0.0 Android SDK Build-Tools 30 platforms;android-29 Android SDK Platform 29 To build this

```

 

This is what my yaml file looks like

 

```

pipelines:
  branches:
    master:
      - parallel:
          - step:
              name: Build
              image: bitbucketpipelines/android-ci-image
              caches:
                - gradle
              script:
                - ./gradlew assembleRelease
              artifacts:
                - app/build/outputs/**
          - step:
              name: Build Debug
              caches:
                - gradle
              image: bitbucketpipelines/android-ci-image
              script:
                - ./gradlew assembleDebug
              artifacts:
                - app/build/outputs/**
```

 

I was following this guide https://bitbucket.org/blog/automate-publishing-your-android-application-with-bitbucket-pipelines-and-gradle 

 

1 answer

1 vote
Soumyadeep Mandal - SaM
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2021

Hi @Jonathan Richards ,

Welcome to the community!

You can follow this link https://medium.com/@_tiwiz/building-android-with-bitbucket-pipelines-83cd62dbde33

Regards,

Soumyadeep

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events