在Android Ui测试中,我想在对话框中单击一个微调项目,但它会弹出以下错误:
va.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not be requesting layout for over 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Otherwise, something is seriously wrong. Selected Root:
Root{application-window-token=android.view.ViewRootImpl$W@2dac97c7, window-token=android.view.ViewRootImpl$W@2dac97c7, has-window-focus=false, layout-params-type=1, layout-params-string=WM.LayoutParams{(0,0)(fillxfill) sim=#10 ty=1 fl=#81810100 pfl=0x8 wanim=0x1030461 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x0}, decor-view-string=MultiPhoneDecorView{id=-1, visibility=VISIBLE, width=1600, height=2560, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, …Run Code Online (Sandbox Code Playgroud) android automated-tests android-espresso android-uiautomator
我知道Android框架会抛出一些异常.喜欢ActivityNotFoundException,WindowManager.BadTokenException.
但我不知道所有其他特定于android框架的异常.
任何人都可以用一个小描述列出可能的特定于android框架的异常.或者向我推荐包含所需信息的博客信息.
提前致谢.