android.support.test.espresso.NoActivityResumedException: Pressed back and killed the app

GitHub | bargeharish | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Press Back() issue.

    GitHub | 7 months ago | bargeharish
    android.support.test.espresso.NoActivityResumedException: Pressed back and killed the app
  2. 0

    Espresso test fails with NoActivityResumedException often

    Stack Overflow | 2 years ago | peuhse
    android.support.test.espresso.NoActivityResumedException: No activities in stage RESUMED. Did you forget to launch the activity. (test.getActivity() or similar)?
  3. 0

    Espresso - click on the button of the dialog

    Stack Overflow | 1 year ago | Val
    android.support.test.espresso.NoActivityResumedException: No activities in stage RESUMED. Did you forget to launch the activity. (test.getActivity() or similar)?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tests failing in android because of headless emulator mode.

    GitHub | 11 months ago | prabintim
    android.support.test.espresso.NoActivityResumedException: No activities in stage RESUMED. Did you forget to launch the activity. (test.getActivity() or similar)?
  6. 0

    GitHub comment 7#75132346

    GitHub | 2 years ago | shauvik
    android.support.test.espresso.NoActivityResumedException: No activities in stage RESUMED. Did you forget to launch the activity. (test.getActivity() or similar)?
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.support.test.espresso.NoActivityResumedException

    Pressed back and killed the app

    at dalvik.system.VMStack.getThreadStackTrace()
  2. Android Platform
    VMStack.getThreadStackTrace
    1. dalvik.system.VMStack.getThreadStackTrace(Native Method)
    1 frame
  3. Java RT
    Thread.getStackTrace
    1. java.lang.Thread.getStackTrace(Thread.java:579)
    1 frame
  4. android.support.test
    Espresso.pressBack
    1. android.support.test.espresso.base.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:92)
    2. android.support.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:56)
    3. android.support.test.espresso.ViewInteraction.runSynchronouslyOnUiThread(ViewInteraction.java:184)
    4. android.support.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:115)
    5. android.support.test.espresso.ViewInteraction.perform(ViewInteraction.java:87)
    6. android.support.test.espresso.Espresso.pressBack(Espresso.java:189)
    6 frames
  5. com.example.android
    NotesActivityTest5.notesActivityTest5
    1. com.example.android.testing.notes.notes.NotesActivityTest5.notesActivityTest5(NotesActivityTest5.java:52)
    1 frame
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  7. JUnit
    InvokeMethod.evaluate
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    4 frames
  8. android.support.test
    ActivityTestRule$ActivityStatement.evaluate
    1. android.support.test.internal.statement.UiThreadStatement.evaluate(UiThreadStatement.java:55)
    2. android.support.test.rule.ActivityTestRule$ActivityStatement.evaluate(ActivityTestRule.java:270)
    2 frames
  9. JUnit
    JUnitCore.run
    1. org.junit.rules.RunRules.evaluate(RunRules.java:20)
    2. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    4. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    5. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    6. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    7. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    8. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    9. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    10. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    11. org.junit.runners.Suite.runChild(Suite.java:128)
    12. org.junit.runners.Suite.runChild(Suite.java:27)
    13. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    14. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    15. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    16. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    17. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    18. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    19. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    20. org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    20 frames
  10. android.support.test
    AndroidJUnitRunner.onStart
    1. android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
    2. android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
    2 frames
  11. Android Platform
    Instrumentation$InstrumentationThread.run
    1. android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
    1 frame