Search code examples
androidandroid-espressoandroid-test-orchestrator

Android Test Orchestrator: com.android.ddmlib.InstallException: -26


When launching androidConnectTests I receive an error:

caused by: com.android.ddmlib.InstallException: -26 Package androidx.test.services new target SDK 14 doesn't support runtime permissions and old target does 

This started happening after enabling the Android Test Orchestrator.


Solution

  • You need to uninstall any old version of androidx.test.services

    adb uninstall androidx.test.services
    

    Then you need to make sure you are using the latest version of androidx-test.

    See these instructions for setting up the latest version of Android Test Orchestrator. https://developer.android.com/training/testing/junit-runner#using-android-test-orchestrator