【发布时间】:2014-03-08 22:54:16
【问题描述】:
我正在尝试测试我的活动 (HomeActivity),该活动具有基于 NineOldAndroids 库和 Espresso 的重复动画。我按照here 的描述关闭了系统动画,但它没有帮助,并且出现错误(见下文)。唯一有用的是手动删除动画。 所以问题是我是否需要手动关闭动画(使用 BuildConfig 似乎很轻松)或者我做错了什么? 提前谢谢!
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.
【问题讨论】:
标签: android android-testing android-espresso