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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do successfully accept android sdk licence?

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,884 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you