From 67bf1626a0facf291c3dfaa5c9995d8da6b184ed Mon Sep 17 00:00:00 2001 From: William Brawner Date: Sat, 20 Feb 2021 22:01:43 -0700 Subject: [PATCH] Run UI tests on API 29 For some reason running the tests on API 30 fails with the below exception. Interestingly enough the tests run just fine on my local API 30 emulator. java.lang.RuntimeException: Exception thrown in onCreate() of ComponentInfo{com.wbrawner.simplemarkdown.test/androidx.test.runner.AndroidJUnitRunner}: java.lang.IllegalStateException: Cannot connect to androidx.test.orchestrator.OrchestratorService FATAL EXCEPTION: main Process: com.wbrawner.simplemarkdown, PID: 21960 java.lang.RuntimeException: Exception thrown in onCreate() of ComponentInfo{com.wbrawner.simplemarkdown.test/androidx.test.runner.AndroidJUnitRunner}: java.lang.IllegalStateException: Cannot connect to androidx.test.orchestrator.OrchestratorService at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6709) at android.app.ActivityThread.access$1300(ActivityThread.java:237) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: java.lang.IllegalStateException: Cannot connect to androidx.test.orchestrator.OrchestratorService at androidx.test.internal.events.client.TestEventServiceConnectionBase.connect(TestEventServiceConnectionBase.java:91) at androidx.test.internal.events.client.TestEventClient.connect(TestEventClient.java:125) at androidx.test.runner.AndroidJUnitRunner.isOrchestratorServiceProvided(AndroidJUnitRunner.java:347) at androidx.test.runner.AndroidJUnitRunner.onCreate(AndroidJUnitRunner.java:319) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6704) ... 8 more --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index a4cbee1..ed75aac 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -173,7 +173,7 @@ fladle { ] testTimeout = "7m" devices = [ - [ "model": "NexusLowRes", "version": "30" ] + [ "model": "NexusLowRes", "version": "29" ] ] projectId = 'simplemarkdown' }