# | |
# Build configuration for Circle CI | |
# | |
# See this thread for speeding up and caching directories: https://discuss.circleci.com/t/installing-android-build-tools-23-0-2/924 | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/AndroidCI/app/build/outputs/apk/ | |
machine: | |
environment: | |
ANDROID_HOME: /usr/local/android-sdk-linux | |
dependencies: | |
pre: | |
- 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 | |
cache_directories: | |
- /usr/local/android-sdk-linux/tools | |
- /usr/local/android-sdk-linux/build-tools/23.0.3 | |
test: | |
override: | |
- ./gradlew assemble | |
- cp -r app/build/outputs $CIRCLE_ARTIFACTS |
This comment has been minimized.
This comment has been minimized.
Hey I m getting this Error Below: I m using buildToolsVersion 25.0.2 Android 25
FAILURE: Build failed with an exception.
BUILD FAILED Total time: 1 mins 13.164 secs export TERM="dumb" |
This comment has been minimized.
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 the23.4.0
bump. I didn't test removingextra-google-m2repository
but it might not be necessary anymore too.