title: How do I use the latest support library (Getting failed to resolve error with support library 26.0.2 and compileSDKVersion 26)?
body: <p>I have updated my compileSdkVersion to 26. This is how my gradle file looks now.</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      buildToolsVersion "26.0.0"
      defaultConfig {
          applicationId ##############
          minSdkVersion 21
          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:25.3.1'
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
      compile 'com.android.support:recyclerview-v7:25.3.1'
      compile 'com.android.support:cardview-v7:25.3.1'
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>Predictably, I get warnings for the mismatch(?) in the versions of support library (25.3.1) and the CompileSdkVersion (26).</p>
  
  <p>I have tried to update the support library version to the below versions:</p>
  
  <ul>
  <li>compile 'com.android.support:appcompat-v7:26.0.0'</li>
  <li>compile 'com.android.support:appcompat-v7:26.0.2'</li>
  </ul>
  
  <p><strong>The Problem</strong></p>
  
  <p>None of them worked. Both cases show <code>Failed to resolve</code> errors. Clicking on <code>Install Repository and sync project</code> freezes Android Studio for a couple of seconds and nothing else happens.</p>
  
  <p>Am I missing something?</p>
  
  <p>The latest Android support version library <a href="https://developer.android.com/topic/libraries/support-library/packages.html#design" rel="noreferrer">here</a> is <code>26.0.2</code>.</p>