I am trying to test my activity (HomeActivity), which repeats the animation based on the NineOldAndroids lib with Espresso. I turned off system animation as described here , but this does not help, and I get an error message (see below). The only thing that helps is to remove the animation manually. So, the question is, do I need to manually turn off the animation (using BuildConfig seems to be no problem) or maybe I'm doing something wrong? Thank you in advance!
java.lang.RuntimeException: Could not launch intent Intent {
act=android.intent.action.MAIN flg=0x14000000
cmp=com.package.en/com.package.ui.HomeActivity } within 45 seconds.
Perhaps the main thread has not gone idle within a reasonable amount
of time? There could be an animation or something constantly
repainting the screen. Or the activity is doing network calls on
creation? See the threaddump logs. For your reference the last time
the event queue was idle before your activity launch request was
1392052899081 and and now the last time the queue went idle was:
1392052899081. If these numbers are the same your activity might be hogging the event
queue.
source
share