Installing Android dependencies - android-update-sdk: command not found

Hi

Trying to run my maven project for testing UI in android application. To prepare execution I need to run appium and run emulator. I can do all this on my local env from bash script. As project is on github I would like to use travis. This is appium/selenium/testng/java project. I’m not sure if I have .travis.yml with “language: android” or should I start with “language: java”. Anyway all components I install success but when I want to execute android sdk manager I can see this:

env:
    global:
        - ANDROID_API_LEVEL=28
        - ANDROID_BUILD_TOOLS_VERSION=28.0.3
        - ANDROID_ABI=armeabi-v7a

android:
    components:
        - tools
        - platform-tools
        - tools
        - extra-android-m2repository
    licenses:
        - 'android-sdk-preview-license-52d11cd2'
        - 'android-sdk-license-.+'
        - 'google-gdk-license-.+'

and this output

Setting environment variables from .travis.yml

$ export ANDROID_API_LEVEL=28

$ export ANDROID_BUILD_TOOLS_VERSION=28.0.3

$ export ANDROID_ABI=armeabi-v7a

Installing Android dependencies

0.13s$ android-update-sdk --components=tools --accept-licenses='android-sdk-preview-license-52d11cd2|android-sdk-license-.+|google-gdk-license-.+'

android-update-sdk: command not found

The command "android-update-sdk --components=tools --accept-licenses='android-sdk-preview-license-52d11cd2|android-sdk-license-.+|google-gdk-license-.+'" failed and exited with 127 during .

I was trying user dist: trusty. Maybe I should install android sdk, not sure because I did not see if anyone installing sdk

Regards

Solution I have found was replace:

language: android to language: java and do android things manually :

- export ANDROID_HOME=~/android-sdk-linux
- wget -q "https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip" -O android-sdk-tools.zip
- unzip -q android-sdk-tools.zip -d ${ANDROID_HOME}
- rm android-sdk-tools.zip
- PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
- mkdir -p ~/.android
- touch ~/.android/repositories.cfg
- yes | sdkmanager --licenses
- yes | sdkmanager "emulator" "tools" "platform-tools" > /dev/null
- yes | sdkmanager "platforms;android-25" > /dev/null
- yes | sdkmanager "build-tools;25.0.2" > /dev/null
- yes | sdkmanager "system-images;android-25;google_apis;armeabi-v7a" > /dev/null
/dev/null