title: Android Studio doesn't recognize Espresso classes
body: <p>I'm running <code>Android Studio 0.5.0</code> with <code>Gradle 1.11</code>. I'm trying to install Espresso library from  <a href="http://mvnrepository.com/artifact/com.jakewharton.espresso/espresso/1.1-r2">com.jakewharton.espresso:espresso:1.1-r2</a>. For some reason AS couldn't recognize Espresso classes after project synchronization. So every time I try to import <code>import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;</code> inside <code>androidTest</code> folder files it marks it as invalid.</p>
  
  <p>Here's my build.gradle:</p>
  
  <pre><code>apply plugin: 'android'
  
  android {
      compileSdkVersion 19
      buildToolsVersion '19.0.2'
  
      defaultConfig {
          minSdkVersion 14
  
          targetSdkVersion 19
          versionCode 1
          versionName "1.0"
  
          testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
      }
  
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  }
  
  dependencies {
      compile 'com.squareup.dagger:dagger-compiler:1.2.1'
      compile 'com.squareup.dagger:dagger:1.2.1'
  
      androidTestCompile ('com.jakewharton.espresso:espresso:1.1-r2') {
          exclude group: 'com.squareup.dagger'
      }
  }
  </code></pre>
  
  <p>External libraries:</p>
  
  <p><img src="https://i.stack.imgur.com/yXSve.jpg" alt="external libraries"></p>