From a444d7ccc3667ed0efdb927f1138ff7f7c6a62f2 Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 8 Dec 2017 15:06:00 -0800 Subject: [PATCH] Update platform tools manually --- .travis.yml | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9cb2c6b5..f4743e8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,33 +5,24 @@ jdk: env: global: - - NDK_VERSION=r16 - - NDK_CCACHE=ccache - GOROOT_BOOTSTRAP=$GOROOT - - ANDROID_NDK_HOME=$HOME/.android/android-ndk-${NDK_VERSION} - - PATH=${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH} cache: directories: - $HOME/.gradle -android: - components: - - tools - - android-27 - - build-tools-27.0.2 - install: - - > - if [ ! -d "$ANDROID_NDK_HOME" ]; then - mkdir -p $ANDROID_NDK_HOME; - pushd $HOME/.android; - export ARCH=`uname -m`; - wget -q http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-${ARCH}.zip; - unzip -q android-ndk-${NDK_VERSION}-linux-${ARCH}.zip; - popd; - fi - - > + - pushd $ANDROID_HOME + - rm -rf tools + - wget -q https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip -O tools.zip + - unzip -q tools.zip + - popd + - touch $HOME/.android/repositories.cfg + - yes | sdkmanager + "build-tools;27.0.2" + ndk-bundle + "platforms;android-27" + >/dev/null script: - ./gradlew assembleDebug