I’m trying to migrate an Android project to CircleCI, but I’m running into this error when trying to run my “connected” tests:
MYPROJ > : No compatible devices connected.[TestRunner] FAILED 
> Building 99% > :MyProject:connectedMyprojDebugAndroidTest Found 1 connected device(s), 0 of which were compatible.
:MyProject:connectedMyprojDebugAndroidTest FAILED
I’m not sure why I am getting this error or how to solve this issue. Any help or tips to get me headed in the right direction would be appreciated!
My build.gradle specifies the following attributes:
compileSdkVersion 24
buildToolsVersion '24.0.2'
minSdkVersion 19
targetSdkVersion 24
Here is my circle.yml:
dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter tools
    - echo y | android update sdk --no-ui --all --filter platform-tools
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository
    - echo y | android update sdk --no-ui --all --filter extra-android-support
    - echo y | android update sdk --no-ui --all --filter extra-google-google_play_services
    - echo y | android update sdk --no-ui --all --filter extra-google-m2repository
    - echo y | android update sdk --no-ui --all --filter android-24
    - echo y | android update sdk --no-ui --all --filter build-tools-24.0.2
    - echo y | android update sdk -a -u -t sys-img-armeabi-v7a-google_apis-24
    - android list targets
test:
  override:
    # start the emulator
    - echo no | android create avd -n custom-android24-googleapis -t "android-24" --abi google_apis/armeabi-v7a
    - android list avd
    - emulator -avd custom-android24-googleapis -no-window:
        background: true
        parallel: true
    # wait for it to have booted
    - circle-android wait-for-boot
    # run unit tests
    - ./gradlew testMyprojDebug -PdisablePreDex
    # run tests against the emulator.
    - ./gradlew connectedMyprojDebugAndroidTest