Travis install android sdk and api for build

Summary:
Travis android build is failing with

    BUILD FAILED: Google APIs not found in /usr/local/opt/android-sdk/add-ons/addon-google_apis-google-19/libs.
    Please run '/usr/local/opt/android-sdk/tools/android sdk' and select both 'SDK Platform' and 'Google APIs' under Android (API 19)

This should fix that error

Reviewed By: emilsjolander

Differential Revision: D4588053

fbshipit-source-id: e57d635141e8aede5803b919ee5a28a60c5e667c
This commit is contained in:
Robert Spencer
2017-02-20 02:15:36 -08:00
committed by Facebook Github Bot
parent 521aab5fcc
commit 3f68b4f76b

View File

@@ -59,6 +59,7 @@ before_install:
brew install android-sdk;
export ANDROID_SDK=/usr/local/opt/android-sdk
export ANDROID_HOME=/usr/local/opt/android-sdk
$ANDROID_SDK/tools/android update sdk --filter android-19,addon-google_apis-google-19
fi
script: