Android Espresso: PerformException

前端 未结 7 2077
春和景丽
春和景丽 2020-12-30 22:59

I`m getting

android.support.test.espresso.PerformException: Error performing \'send keyCode: 4, metaState: 0 key event\' on view \'Animations or tra

7条回答
  •  清酒与你
    2020-12-30 23:34

    I had a similar error but after inspecting the logcat, I realised the fragment under test was trying to do a navigation and the nav graph wasn't defined in the test because the fragment had been launched with launchFragmentInContainer. Fixing that fixed the issue.

提交回复
热议问题