No tests found for android sdk 28

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 &

This means: “start looking for differences between your local machine and Travis”.
For starters, your configuration is using dist: precise which is EOL since 04.2017.

I tried using both trusty and xenial, it seems emulator is not starting for those distros. https://travis-ci.org/testpress/android-sdk/jobs/599492008.
Is there any way I can run Travis locally?

Googling the error message finds:

Travis VM images are not available (to my knowledge, the closest thing available is https://github.com/travis-ci/travis-cookbooks/) but you can get interactive debugging on request: