Supporting Multiple Build Tools

android

#1

Working on an Android project where the main app is using buildToolsVersion 22.0.1 along with a widget (ViewFlow) that uses buildToolsVersion 19.1.0. CircleCi is failing with the message:
failed to find Build Tools revision 19.1.0

I tried including multiple build tool versions in my .yml file with no luck.

Anyone encounter / resolve before?

ViewFlow Gradle file:
z.floatingspace.com/circleci/viewFlowGradle.txt

Project Gradle file:
z.floatingspace.com/circleci/buildGradle.txt

.yml file:

general:
    artifacts:
        - /home/ubuntu/dropin-android/app/build/outputs/apk/

machine:
    environment:
        ANDROID_HOME: /usr/local/android-sdk-linux

dependencies:
    override:
        - echo y --verbose | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-22.0.1,build-tools-19.1.0,android-23,extra-google-m2repository,extra-google-google_play_services,extra-android-support
        - ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies

test:
    override:
        - (./gradlew assemble):
            timeout: 360

#2

I was able to get build tools 19.1 installed with the following command:

dependencies:
  override:
    - echo 'y' | android update sdk -u -a -t 15

as suggested by this StackOverflow answer.


#3

Perfect. This solution worked. Thanks for your help!


#4