title: syncing android gradle appcompat 27.0.1
body: <p>I am new to android studio and not sure about gradle settings. I have downloaded Android API 27. </p>
  
  <p>this is error I get:</p>
  
  <blockquote>
    <p>Error:Unable to resolve dependency for ':app@debug/compileClasspath':
    Could not resolve com.android.support:appcompat-v7:27.0.1.</p>
  </blockquote>
  
  <p>this is build.gradle (project):</p>
  
  <pre><code>all sub-projects/modules.
      buildscript {
          repositories {
              jcenter()
              google()
          }
          dependencies {
              classpath 'com.android.tools.build:gradle:3.0.1'
          }
      }
  
      allprojects {
          repositories {
              jcenter()
              google()
          }
      }
  </code></pre>
  
  <p>and this is build.gradle (Module app)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  def var = android {
      compileSdkVersion 27
      buildToolsVersion "27.0.1"
  
      defaultConfig {
          applicationId "com.sample.sample"
          minSdkVersion 13
          targetSdkVersion 26
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  }
  var
  
  dependencies {
      compile 'com.android.support:appcompat-v7:27.0.1'
  }
  </code></pre>
  
  <p>and this is available SDK tools I use:
  <a href="https://i.stack.imgur.com/uK8Qo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uK8Qo.jpg" alt="enter image description here"></a></p>