title: Cannot resolve symbol 'AndroidJUnit4'
body: <p>Obviously I need the correct import statment to solve this problem. According to the <a href="http://developer.android.com/reference/android/support/test/runner/AndroidJUnit4.html" rel="noreferrer">docs for <code>AndroidJUnit4</code></a>, this should be </p>
  
  <pre><code>import android.support.test.runner.AndroidJUnit4;
  </code></pre>
  
  <p>When I do that, Android Studio highlights <code>runner</code> in red and complains "Cannot resolve symbol 'runner'".</p>
  
  <p><strong>Background</strong></p>
  
  <p>I got to this point by following the tutorials on the Android Developer site for <a href="https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html" rel="noreferrer">setting up tests using UI Automator</a>. The first problem I encountered was that <code>com.android.support:support-v4:22.2.0</code> and <code>com.android.support.test:runner:0.2</code> depend on different versions of <code>com.android.support:support-annotations</code>. I followed the suggestions from <a href="https://code.google.com/p/android-test-kit/issues/detail?id=136" rel="noreferrer">this Android bug report</a> and added the following to <code>allprojects</code> in my project's <code>build.gradle</code>:</p>
  
  <pre><code>configurations.all {
      resolutionStrategy.force 'com.android.support:support-annotations:22.1.0'
  }
  </code></pre>
  
  <p>This solved the immediate error, but I suspect it lead to my current problems. Does anyone have any suggestions about how to fix this?</p>
  
  <p><strong>Relevent sections from `./gradlew :app:dependencies</strong></p>
  
  <pre><code>androidTestCompile - Classpath for compiling the androidTest sources.
  +--- com.jayway.android.robotium:robotium-solo:5.2.1
  +--- com.squareup:fest-android:1.0.8
  |    \--- org.easytesting:fest-assert-core:2.0M10
  |         \--- org.easytesting:fest-util:1.2.5
  +--- com.android.support.test:runner:0.2
  |    +--- junit:junit-dep:4.10
  |    |    \--- org.hamcrest:hamcrest-core:1.1
  |    +--- com.android.support.test:exposed-instrumentation-api-publish:0.2
  |    \--- com.android.support:support-annotations:22.0.0 -&gt; 22.2.0
  +--- com.android.support.test:rules:0.2
  |    \--- com.android.support.test:runner:0.2 (*)
  \--- com.android.support.test.uiautomator:uiautomator-v18:2.1.0
  
  compile - Classpath for compiling the main sources.
  +--- com.android.support:appcompat-v7:22.2.0
  |    \--- com.android.support:support-v4:22.2.0
  |         \--- com.android.support:support-annotations:22.2.0
  +--- com.android.support:support-v4:22.2.0 (*)
  +--- com.google.android.gms:play-services:6.1.71
  |    \--- com.android.support:support-v4:20.0.0 -&gt; 22.2.0 (*)
  +--- com.crashlytics.android:crashlytics:1.+ -&gt; 1.1.13
  \--- com.jakewharton:butterknife:5.1.2
  </code></pre>