I am testing a new Android Espresso test library. When I try:
onView(withId(R.id.gettingStarted))
The test runs fine. But when I try:
onView(withId(R.id.gettingStarted)).check(matches(isDisplayed()));
I get .NoMatchingViewException: No views in hierarchy found matching: with id: is <2131296645>
Has anyone seen anything like this before? My initial reflex is that this is just a mistake, because Espresso is only on version 1.0. I use Android Studio and follow the settings exactly.
source share