title: PerformException: Error performing 'single click'
body: <p>I got a error when i run android espresso test:</p>
  
  <blockquote>
    <p>com.google.android.apps.common.testing.ui.espresso.PerformException: Error performing 'single click' on view 'with id: is &lt;2131034173>'.</p>
  </blockquote>
  
  <p>My code is easy:</p>
  
  <pre><code>onView(withId(R.id.btn)).perform(click());
  </code></pre>
  
  <p>But there is no error with this code:</p>
  
  <pre><code>onView(withId(R.id.btn)).check(matches(isDisplayed()));
  </code></pre>
  
  <p>I can not find the cause why it happen.</p>