Intent failed to start for 45 seconds - robotium

I ran into a big problem that I tried to solve in a few days. I am trying to run a test using robotium, but when I call getActivity() in the setup method, a RuntimeException .

java.lang.RuntimeException: Failed to start Intent intent {act = android.intent.action.MAIN flg = 0x14000000 cmp = com.company.app/.SplashActivity} for 45 seconds. Perhaps the main thread did not stand for a reasonable period of time? Maybe an animation or something that constantly repaints the screen. Or does activity make network calls at creation? See threaddump logs. For your reference, the last time the event queue was before processing the request to launch 1463908619275, and now the last time the queue is in the queue: 1463908619275. If these numbers are the same, the event queue may hang.

I am using robotium 5.4.4

+6
source share

All Articles