travis: limit max Android emulator level to 25 as it is max available for ARM EABI
@@ -11,5 +11,9 @@ unzip -q $HOME/emdk.zip -d $ANDROID_HOME/add-ons
#genearate keystore
cd $HOME/.android && printf "android\nandroid\nTRAVIS-CI\nCI-SYSTEM\nTAU\nUNIVERSE\nUNIVERSE\nUN\nyes\n\n" | keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000
#download
-echo yes | $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${RHO_ANDROID_LEVEL:-26};default;armeabi-v7a"
-echo yes | $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${RHO_ANDROID_LEVEL:-26};google_apis;armeabi-v7a"
+
+EMULEVEL=${RHO_ANDROID_LEVEL:-26}
+EMULEVEL=$((EMULEVEL>25?25:EMULEVEL))
+
+echo yes | $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${EMULEVEL};default;armeabi-v7a"
+echo yes | $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${EMULEVEL};google_apis;armeabi-v7a"
