1

when i create new project on android studio i receive error :

enter image description here

and this is the code when i click on show in project :

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "org.ashiyane.sepehr"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.3.0'
    compile 'com.android.support:support-v4:23.3.0'
    compile 'com.android.support:recyclerview-v7:23.3.0'
    compile 'com.android.support:design:23.3.0'
}
Ori Price
  • 3,593
  • 2
  • 22
  • 37
sepeee
  • 11
  • 2
  • Possible duplicate of [Error:(23, 17) Failed to resolve: junit:junit:4.12](http://stackoverflow.com/questions/32519219/error23-17-failed-to-resolve-junitjunit4-12) – Viral Patel Jun 13 '16 at 11:53
  • Please, read [this (how to ask)](http://stackoverflow.com/help/how-to-ask) and [this (mcve)](http://stackoverflow.com/help/mcve) before asking, as those will help you get more and better answers from the community. Never add code in images, or links in images... most people wont even check it, to see it they can aid in resolving the issue. – Bonatti Jun 13 '16 at 11:56

2 Answers2

0

Just comment that line in build.gradle file..

//testCompile 'junit:junit:4.12'
M.Usman
  • 2,049
  • 22
  • 25
0

Check your module Dependencies : Android Studio > File > Project Structure > Select your Module >Dependencies > + > Library Dependency > check it available or not otherwise update your repository in SDK

Yash ajabiya
  • 134
  • 2
  • 8