Recently I updated the android project to androidx, so I changed compile SDK version to 28. After that travis fails to find instrumentation tests. But in local it works fine.
Here is the job link
language: android
jdk: oraclejdk8
sudo: required
dist: precise
env:
global:
- ANDROID_API_LEVEL=28 # Compile SDK version
- EMULATOR_API_LEVEL=19
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
- ANDROID_TAG=google_apis
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)
android:
components:
- tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
- android-$EMULATOR_API_LEVEL
- addon-google_apis-google-$ANDROID_API_LEVEL
- addon-google_apis-google-$EMULATOR_API_LEVEL
- extra-google-m2repository
- extra-android-m2repository
- sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL
licenses:
- 'android-sdk-license-.+'
- '.+'
before_script:
- echo no | android create avd --force -n test -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &