Home > Back-end >  Really the execution of espresso demo, unable to pull up application, an error
Really the execution of espresso demo, unable to pull up application, an error

Time:09-17

The demo address:
https://github.com/android/testing-samples/tree/master/ui/espresso/CustomMatcherSample

 
Java. Lang. AssertionError: Activity never becomes requested state "[RESUMED, CREATED and DESTROYED, STARTED]" (the last lifecycle transition="PRE_ON_CREATE")
The at androidx. Test. The core. The app. ActivityScenario. WaitForActivityToBecomeAnyOf (ActivityScenario. Java: 338)
The at androidx. Test. The core. The app. ActivityScenario. LaunchInternal (ActivityScenario. Java: 272)
The at androidx. Test. The core. The app. ActivityScenario. Launch (ActivityScenario. Java: 195)
The at androidx. Test. Ext. Junit. Rules. ActivityScenarioRule. Lambda $new $0 $ActivityScenarioRule (ActivityScenarioRule. Java: 70)
The at androidx. Test. Ext. Junit. Rules. ActivityScenarioRule $$Lambda $0. Get (Unknown Source: 2)
The at androidx. Test. Ext. Junit. Rules. ActivityScenarioRule. Before (103) ActivityScenarioRule. Java:
At org. Junit. Rules. ExternalResource $1. The evaluate (46) ExternalResource. Java:
The at org. Junit. Rules. RunRules. Evaluate (20) RunRules. Java:
The at org. Junit. Runners. ParentRunner. RunLeaf (ParentRunner. Java: 325)
The at org. Junit. Runners. BlockJUnit4ClassRunner. RunChild (BlockJUnit4ClassRunner. Java: 78)
The at org. Junit. Runners. BlockJUnit4ClassRunner. RunChild (BlockJUnit4ClassRunner. Java: 57)
The at org. Junit. Runners. ParentRunner $3. The run (ParentRunner. Java: 290)
The at org. Junit. Runners. ParentRunner $1. The schedule (ParentRunner. Java: 71)
The at org. Junit. Runners. ParentRunner. RunChildren (ParentRunner. Java: 288)
The at org. Junit. Runners. ParentRunner. Access the $000 (ParentRunner. Java: 58)
At org. Junit. Runners. ParentRunner $2. The evaluate (ParentRunner. Java: 268)
The at org. Junit. Runners. ParentRunner. Run (ParentRunner. Java: 363)
The at androidx. Test. Ext. Junit. Runners. AndroidJUnit4. Run (AndroidJUnit4. Java: 154)
At org. Junit. Runners. Suite. RunChild (128) Suite. Java:
The at org. Junit. Runners. Suite. RunChild (Suite. Java: 27)
The at org. Junit. Runners. ParentRunner $3. The run (ParentRunner. Java: 290)
The at org. Junit. Runners. ParentRunner $1. The schedule (ParentRunner. Java: 71)
The at org. Junit. Runners. ParentRunner. RunChildren (ParentRunner. Java: 288)
The at org. Junit. Runners. ParentRunner. Access the $000 (ParentRunner. Java: 58)
At org. Junit. Runners. ParentRunner $2. The evaluate (ParentRunner. Java: 268)
The at org. Junit. Runners. ParentRunner. Run (ParentRunner. Java: 363)
The at org. Junit. Runner. JUnitCore. Run (JUnitCore. Java: 137)
The at org. Junit. Runner. JUnitCore. Run (JUnitCore. Java: 115)
The at androidx. Test. Internal. Runner. TestExecutor. Execute (TestExecutor. Java: 56)
The at androidx. Test. Runner. AndroidJUnitRunner. OnStart (AndroidJUnitRunner. Java: 395)
. An android app. Instrumentation $InstrumentationThread. Run (Instrumentation. Java: 2174)
  • Related