# No tests found for android sdk 28

**URL:** <https://travis-ci.community/t/no-tests-found-for-android-sdk-28/5520>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** android\
**Created:** [October 18, 2019, 4:42am UTC](https://travis-ci.community/t/no-tests-found-for-android-sdk-28/5520 "2019-10-18T04:42:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik-0](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Karthik-0](https://travis-ci.community/u/Karthik-0)\
**Post date:** [October 18, 2019, 4:42am UTC](https://travis-ci.community/t/no-tests-found-for-android-sdk-28/5520/1 "2019-10-18T04:42:30Z")

</div>

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](https://travis-ci.org/testpress/android-sdk/jobs/599458514)

```
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 &
```

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [October 18, 2019, 6:16am UTC](https://travis-ci.community/t/no-tests-found-for-android-sdk-28/5520/2 "2019-10-18T06:16:52Z")

</div>

> [@Karthik-0](#):
>
> But in local it works fine.

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](https://fridge.ubuntu.com/2017/03/15/ubuntu-12-04-precise-pangolin-reaches-end-of-life-on-april-28-2017/).

---

<div class="post-metadata">

**Author:** ![Karthik-0](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Karthik-0](https://travis-ci.community/u/Karthik-0)\
**Post date:** [October 18, 2019, 7:10am UTC](https://travis-ci.community/t/no-tests-found-for-android-sdk-28/5520/3 "2019-10-18T07:10:30Z")

</div>

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](https://travis-ci.org/testpress/android-sdk/jobs/599492008).  
Is there any way I can run Travis locally?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [October 18, 2019, 7:29am UTC](https://travis-ci.community/t/no-tests-found-for-android-sdk-28/5520/4 "2019-10-18T07:29:32Z")

</div>

Googling the error message finds:

> <https://github.com/travis-ci/travis-ci/issues/8188>
>
> I've tried a whole bunch of combinations to get the emulator to install, and I finally settled on the following configuration...

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

> **[Travis CI Documentation](https://docs.travis-ci.com/user/running-build-in-debug-mode/)**
>
> Running Build in Debug Mode
