title: Failed to resolve: junit:junit:4.12
body: <p>I just installed Android Studios on my work computer and I created a new blank project. However, I receive the following error.</p>
  
  <p><strong>Failed to resolve: junit:junit:4.12</strong></p>
  
  <p>I have attempted numerous solutions from the previous time this question was asked but none of them seem to be working. I tried commenting out the entire line <strong>compile files('libs/junit-4.12.jar')</strong>. I tried copy pasting the jar file from the Android studio lib folder to my project lib folder and adding it as a library. On top of that,the gradle always takes more than 10 minutes to build. So any solution I want to try takes me a while. Please help.</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 24
      buildToolsVersion "24.0.3"
      defaultConfig {
          applicationId "com.example.mabbasi.myapplication"
          minSdkVersion 15
          targetSdkVersion 24
          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(include: ['*.jar'], dir: 'libs')
      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:24.2.1'
      testCompile 'junit:junit:4.12'
      compile files('libs/junit-4.12.jar')
  }
  </code></pre>
  
  <p><strong>build.bradle(Project)</strong></p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.2.1'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>