在gradle sync期间找不到com.android.tools.build:gradle:2.2.3 我的build.gradle
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
}
repositories {
mavenCentral()
jcenter()
}
} 错误:找不到com.android.tools.build:gradle:2.2.3。 在以下位置搜索:
文件:/ C:/ Program Files / Android / Android 工作室/ gradle产出/ m2repository / COM /安卓/工具/建设/ 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 要求: project:libraries:opencv
答案 0 :(得分:0)
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/