title: Unable to resolve dependency android studio
body: <p>It is my first time to make a new project in android studio. Then i got this type of error after i added the build tools to 27.0.3 and checked the "Enable embedded Maven Repository" in Setting. Can anyone help me how to solve this ? Thank you.</p>
  
  <pre><code>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not resolve com.android.support:appcompat-v7:28.0.0."&gt;Show Details&lt;/a&gt;    
  Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.3.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not resolve com.android.support.constraint:constraint-layout:1.1.3."&gt;Show Details&lt;/a&gt;
  Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test:runner:1.0.2.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve com.android.support.test:runner:1.0.2."&gt;Show Details&lt;/a&gt;   
  Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': 
  
  Could not resolve com.android.support.test.espresso:espresso-core:3.0.2.
      &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve com.android.support.test.espresso:espresso-core:3.0.2."&gt;Show Details&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0.
      &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve com.android.support:appcompat-v7:28.0.0."&gt;Show Details&lt;/a&gt; 
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.3.
      &lt;a 
  href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve com.android.support.constraint:constraint-layout:1.1.3."&gt;Show Details&lt;/a&gt; 
  Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not resolve com.android.support:appcompat-v7:28.0.0."&gt;Show Details&lt;/a&gt;    
  Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.3.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not resolve com.android.support.constraint:constraint-layout:1.1.3."&gt;Show Details&lt;/a&gt; 
  Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve junit:junit:4.12.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not resolve junit:junit:4.12."&gt;Show Details&lt;/a&gt;   
  Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@release/compileClasspath&amp;#39;: Could not resolve com.android.support:appcompat-v7:28.0.0."&gt;Show Details&lt;/a&gt;  
  Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.3.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@release/compileClasspath&amp;#39;: Could not resolve com.android.support.constraint:constraint-layout:1.1.3."&gt;Show Details&lt;/a&gt;   
  Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@releaseUnitTest/compileClasspath&amp;#39;: Could not resolve com.android.support:appcompat-v7:28.0.0."&gt;Show Details&lt;/a&gt;  
  Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.3.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@releaseUnitTest/compileClasspath&amp;#39;: Could not resolve com.android.support.constraint:constraint-layout:1.1.3."&gt;Show Details&lt;/a&gt;   
  Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve junit:junit:4.12.
  &lt;a href="openFile:C:/Users/Juan/AndroidStudioProjects/HelloWorldApp/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="Unable to resolve dependency for &amp;#39;:app@releaseUnitTest/compileClasspath&amp;#39;: Could not resolve junit:junit:4.12."&gt;Show Details&lt;/a&gt; 
  </code></pre>
  
  <p>Here is my file build.gradle for (project: HelloWorldApp )</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.1.4'
  
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>Here is my file build.gradle for(Module:app)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
      defaultConfig {
          applicationId "com.abc.helloworldapp"
          minSdkVersion 15
          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'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      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>