title: Android studio default project fails: Error:Failed to resolve: com.android.support:support-v4:25.2.0
body: <p>I am literally just starting app development for the first time and the default project when I create a new one will not build. I have tried looking on Google and SO for these errors and have found some but their solutions do not work. Given that I have not edited the files at all, I presume it is an issue with Android Studio not being setup properly but can't figure it out. The errors are as follows:</p>
  
  <pre><code>Error:Failed to resolve: com.android.support:support-v4:25.2.0
  Install Repository and sync project
  Open File
  Show in Project Structure dialog
  
  Error:(23, 24) Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2
  Install Repository and sync project
  Show in File
  Show in Project Structure dialog
  
  Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:26.+
  Install Repository and sync project
  Show in File
  Show in Project Structure dialog
  </code></pre>
  
  <p>The build.gradle file it points to is as follows:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      buildToolsVersion "26.0.0"
      defaultConfig {
          applicationId "com.extremecomputing.spotzz"
          minSdkVersion 17
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      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.+'
      compile 'com.google.android.gms:play-services-maps:11.0.1'
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>I have tried with a previous project that I had created a few things I found online. Such as they had recommended the <code>+</code> in the version could cause unpredictable builds, but that wasn't it. One had recommended a few compile lines in the <code>dependencies</code> section, it changed the errors for a moment saying I needed to download something, I did then it went back to the original errors. I also have tried to make sure that the SDK tools are updated, and they appear to be. Any suggestions would be greatly appreciated. </p>