我花了一整天的时间用Espresso建立Junit4工具测试,但似乎无法完成最后一步。无论我做什么,它都不会识别onView()方法。我尝试过多个SDK/support版本,到目前为止还没有。我已经浏览了所有的谷歌设置指南和许多堆叠溢出的帖子,把这里作为我最后的希望。this dependency to build and run Espresso tests
androidTestCompile'com.android.support.test.es
我正在使用AndroidEspresso来测试我的活动。我有多个动作栏项目,其中大部分都隐藏在溢出中。ViewMatchers.withId(R.id.action_insert)).perform(ViewActions.click());以及错误:
android.support.test.espresso.NoMatchingViewExceptionto load it from one of the following AdapterViews:android.widg