title: Android Studio can't resolve Espresso 3.0.0
body: <p>According to the <a href="https://developer.android.com/training/testing/espresso/setup.html" rel="noreferrer">Android Espresso documentation</a> to date:</p>
  <blockquote>
  <p><strong>Add Espresso dependencies</strong></p>
  <p>To add Espresso dependencies to your project, complete the following steps:</p>
  <ol>
  <li>Open your app’s build.gradle file. This is usually not the top-level build.gradle file but app/build.gradle.</li>
  <li>Add the following lines inside dependencies:<br/></li>
  </ol>
  </blockquote>
  <pre><code>androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.0'
  androidTestCompile 'com.android.support.test:runner:1.0.0'
  </code></pre>
  <p>I created a new project and the generated app/gradle file was like this:</p>
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      buildToolsVersion &quot;26.0.0&quot;
      defaultConfig {
          applicationId &quot;com.app.test&quot;
          minSdkVersion 24
          targetSdkVersion 26
          versionCode 1
          versionName &quot;1.0&quot;
          testInstrumentationRunner &quot;android.support.test.runner.AndroidJUnitRunner&quot;
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile 'com.android.support:appcompat-v7:26.+'
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  <p>When I change it to the following:</p>
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      buildToolsVersion &quot;26.0.0&quot;
      defaultConfig {
          applicationId &quot;com.app.test&quot;
          minSdkVersion 24
          targetSdkVersion 26
          versionCode 1
          versionName &quot;1.0&quot;
          testInstrumentationRunner &quot;android.support.test.runner.AndroidJUnitRunner&quot;
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:26.+'
      testCompile 'junit:junit:4.12'
      // App's dependencies, including test
      compile 'com.android.support:support-annotations:22.2.0'
  
      // Testing-only dependencies
      androidTestCompile 'com.android.support.test:runner:1.0.0'
      androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.0'
  }
  </code></pre>
  <p>I get the following errors:</p>
  <blockquote>
  <p>Error:(29, 24) Failed to resolve: com.android.support.test:runner:1.0.0
  <br/>    Install Repository and sync project<br>
  Error:(30, 24) Failed to resolve: com.android.support.test.espresso:espresso-core:3.0.0
  <br/>    Install Repository and sync project</p>
  </blockquote>
  <p>I have tried clicking on the &quot;Install repository and sync project&quot; link but nothing happens. I have also tried looking through the SDK manager, but I can't really see anything.</p>