I'm trying to test my activity (HomeActivity) which has repeating animation based on NineOldAndroids lib with Espresso. I turned off system animation as described here, but it doesn't help and I'm getting an error (see below). The only thing that help is to remove animation manually. So question is do I need to manually turn off animations (using BuildConfig seems hassle free) 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.