Android Espresso ListView点击项目

我有ListView与图片和文字。 当我尝试点击项目,我得到错误

 android.support.test.espresso.AmbiguousViewMatcherException: 'with id: com.cifrasoft.telefm:id/cardsGridView' matches multiple views in the hierarchy. Problem views are marked with '****MATCHES****' below. 

我使用下面的代码:

 onData(hasToString(startsWith("Item Text"))) .inAdapterView(withId(R.id.cardsGridView)) .perform(click()); 

我可以点击ListView使用Adapter位置,没有匹配或startWith

Solutions Collecting From Web of "Android Espresso ListView点击项目"