title: android - Unresolved reference : all method in Espresso
body: <p>I'm so confused with these error while using Espresso. </p>
  
  <p>This is my import :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import android.os.SystemClock
  import android.support.test.rule.ActivityTestRule
  import android.support.test.runner.AndroidJUnit4
  import org.junit.runner.RunWith
  import android.support.test.espresso.Espresso
  import android.support.test.espresso.action.ViewActions
  import android.support.test.espresso.assertion.ViewAssertions.matches
  import android.support.test.espresso.matcher.ViewMatchers.*
  import org.junit.Rule
  import org.junit.Test
  import org.junit.Before
  import sayurbox.com.oms.view.LoginActivity
  import android.support.test.espresso.intent.Intents.intended
  import android.support.test.espresso.intent.Intents
  import android.support.test.espresso.intent.matcher.IntentMatchers.hasComponent
  import sayurbox.com.oms.view.HomeActivity</code></pre>
  </div>
  </div>
  </p>
  
  <p>I already add all of the dependencies :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>testImplementation 'junit:junit:4.12'
      testImplementation 'org.robolectric:robolectric:4.0.2'
      testImplementation "org.robolectric:shadows-multidex:4.0.2"
      testImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
      testImplementation 'com.android.support.test:runner:1.0.2'
      testImplementation 'com.android.support.test:rules:1.0.2'
      testImplementation 'com.android.support.test.espresso:espresso-intents:3.0.2'</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is the errors :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Unresolved reference: test
  Unresolved reference: junit
  Unresolved reference: AndroidJUnit4
  Unresolved reference: Test
  Unresolved reference: assertEquals
  Unresolved reference: InstrumentationRegistry
  ...</code></pre>
  </div>
  </div>
  </p>
  
  <p>All of the reference is unresolved. can you help me guys?</p>