codelab-android-hilt icon indicating copy to clipboard operation
codelab-android-hilt copied to clipboard

Problem in UI Test (even solution branch error)

Open Kakaranara opened this issue 3 years ago • 0 comments

i got this error when i try to run the test case (ui test) :

java.lang.AssertionError: Activity never becomes requested state "[RESUMED, STARTED, CREATED, DESTROYED]" (last lifecycle transition = "PRE_ON_CREATE") at androidx.test.core.app.ActivityScenario.waitForActivityToBecomeAnyOf(ActivityScenario.java:338) at androidx.test.core.app.ActivityScenario.launchInternal(ActivityScenario.java:272) at androidx.test.core.app.ActivityScenario.launch(ActivityScenario.java:195) at com.example.android.hilt.AppTest.happyPath(AppTest.kt:44)

even solution branch, have the same error. image

Kakaranara avatar Oct 07 '22 05:10 Kakaranara