运行 Espresso 测试时,我在 Jenkins 和某些队友的计算机上收到以下错误。我搜索了这个错误,发现其中很多与超时或某些动画有关。所有设备都关闭了动画。
例如:我上周遇到了这个问题,我卸载了所有的 Android Studio,删除了代码,然后重新安装了它。这没用。我还升级了 Java 和 JDK。在那之后,我仍然遇到这个问题。然后有一天它就起作用了。我不知道为什么。
现在我的同事遇到了这个问题。当针对一个设备 (5.1) 而不是另一个 (6.0) 运行时,会出现此问题。另一个同事遇到了相反的问题。
所以我的问题是 - 我可以检查什么?将采取哪些步骤?我们已经比较了设备上的注意事项 - 所有 IDE 都与版本号和构建工具等匹配。我的想法不多了。
谢谢!
java.lang.RuntimeException: Could not launch intent Intent { act=android.intent.action.MAIN flg=0x14000000 cmp=com.COMPANY.espresso/com.COMPANY.activity.LauncherActivity } 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 …Run Code Online (Sandbox Code Playgroud)