Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Updated circle.yml file
# Build configuration for Circle CI
# See this thread for speeding up and caching directories:
- /home/ubuntu/AndroidCI/app/build/outputs/apk/
ANDROID_HOME: /usr/local/android-sdk-linux
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,extra-google-m2repository,extra-google-google_play_services,extra-android-support,android-23
- echo y | android update sdk --no-ui --all --filter build-tools-23.0.3
- /usr/local/android-sdk-linux/tools
- /usr/local/android-sdk-linux/build-tools/23.0.3
- ./gradlew assemble
- cp -r app/build/outputs $CIRCLE_ARTIFACTS

This comment has been minimized.

Copy link

@rodly rodly commented Jul 20, 2016

Need to update your android update dependencies with extra-android-m2repository. Currently the build fails to download support library dependencies without it. They must have changed the repository location around the 23.4.0 bump. I didn't test removing extra-google-m2repository but it might not be necessary anymore too.


This comment has been minimized.

Copy link

@kevinjam kevinjam commented Feb 15, 2017

Hey I m getting this Error Below: I m using buildToolsVersion 25.0.2 Android 25

File /home/ubuntu/.android/repositories.cfg could not be loaded.

FAILURE: Build failed with an exception.

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

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

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 1 mins 13.164 secs

export TERM="dumb"
if [ -e ./gradlew ]; then ./gradlew dependencies;else gradle dependencies;fi
returned exit code 1
Action failed: gradle dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment