浓咖啡:AppNotIdleException [英] Espresso: AppNotIdleException

查看:102
本文介绍了浓咖啡:AppNotIdleException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

登陆页面时,我不断遇到此错误.对此有什么解决方案?

I am continuously getting this error when I land on a page. What could be the solution to this?

android.support.test.espresso.AppNotIdleException: Looped for 4539 iterations over 60 SECONDS. The following Idle Conditions failed .
at dalvik.system.VMStack.getThreadStackTrace(Native Method)
at java.lang.Thread.getStackTrace(Thread.java:580)
at android.support.test.espresso.base.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:92)
at android.support.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:56)
at android.support.test.espresso.ViewInteraction.runSynchronouslyOnUiThread(ViewInteraction.java:184)
at android.support.test.espresso.ViewInteraction.check(ViewInteraction.java:158)

推荐答案

它可能是由于任何无限创建自身的UI元素引起的.例如,您有一个自定义ProgressBar或Snackbar,它在xml中设置为invisible/gone,并且将其设置为在Java代码中可见.但是由于代码写得不好,它可能会以不可见/消失的状态重新绘制自身.因此,如果有的话,也要遍历任何自定义UI元素.

It might occur due to any UI element which is creating itself infinitely. For example, you have a Custom ProgressBar or Snackbar which is set to invisible/gone in xml and you are setting it visible in java code. But it might re-paint itself in invisible/gone state also due to ill-written code. So, go through any Custom UI elements as well if you have any.

这篇关于浓咖啡:AppNotIdleException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆