0
votes

Could not find com.android.tools.build:gradle:2.2.3 during gradle sync my build.gradle

buildscript {
dependencies {
    classpath 'com.android.tools.build:gradle:2.2.0'
}
repositories {
    mavenCentral()
    jcenter()
}

} Error:Could not find com.android.tools.build:gradle:2.2.3. Searched in the following locations:

file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.jar https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.jar Required by: project :libraries:opencv

1
have you check classpath in build.gradle(project)? - Farhana Naaz Ansari
yes farhana classpath 'com.android.tools.build:gradle:2.2.3' - Ayan
check for gradle update - Farhana Naaz Ansari
i don't know why conflicts gradle. - Ayan
Thank you for your reply ok i'll try. - Ayan

1 Answers

0
votes

Because you may have not specify where to take this Dependency from :

Add jcenter() along with mavenCentral() in your project level build.gradle file

buildscript {
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.0'
    }
    repositories {
        jcenter()
    }
}

Check what is Maven and Jcenter from here : https://simpligility.github.io/android-maven-plugin/