title: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0-rc01
body: <p>I am getting below error in my new Android studio version basic hello world is also not building in gradle. cloud you please help on the same.</p>
  
  <p><strong>This is the error I am getting in new android studio version :</strong></p>
  
  <p><img src="https://i.stack.imgur.com/FpCXw.jpg" alt="This is the error I am getting in new android studio version"></p>
  
  <p><strong>My gradle file is as below</strong> </p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
      defaultConfig {
          applicationId "payments.com.java.payments"
          minSdkVersion 17
          targetSdkVersion 28
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
      implementation 'com.android.support.constraint:constraint-layout:1.1.2'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  }
  </code></pre>
  
  <p><strong>This is the logs i am getting</strong> </p>
  
  <blockquote>
    <p>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0-rc01.
    Open File
    Show Details    </p>
    
    <p>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.2.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test:runner:1.0.2.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test.espresso:espresso-core:3.0.2.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for
    ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0-rc01.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.2.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0-rc01.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.2.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0-rc01.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.2.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0-rc01.
    Open File
    Show Details</p>
    
    <p>Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.2.
    Open File
    Show Details</p>
  </blockquote>