I am now using the CircleCI for my project. Also I am implementing the new constraintLayout in my project. Now I am stuck with the CircleCI bui
This worked for me, and also checks for cached versions first:
dependencies: pre: # Android SDK Platform 24 - if [ ! -d "/usr/local/android-sdk-linux/platforms/android-24" ]; then echo y | android update sdk --no-ui --all --filter "android-24"; fi # Android SDK Build-tools, revision 24.0.1 - if [ ! -d "/usr/local/android-sdk-linux/build-tools/24.0.1" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-24.0.1"; fi # Android Support Repository, revision 35 / Local Maven repository for Support Libraries - if [ ! -d "/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/design/24.1.0" ]; then echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"; fi cache_directories: - /usr/local/android-sdk-linux/platforms/android-24 - /usr/local/android-sdk-linux/build-tools/24.0.1 - /usr/local/android-sdk-linux/extras/android/m2repository
Taken from this post by CircleCI employee drazisil