[英]ionic - Could not resolve com.android.tools.build:gradle:2.2.3
[英]Could not found com.android.tools.build:gradle:2.2.3
您好,當我下載課程中提供的代碼時,我正在遵循Udacity的材料設計課程,但是當我在Android中打開它時,會出現此錯誤
Error:Could not find com.android.tools.build:gradle:2.2.3.
Searched in the following locations:
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:
:ApplyPaletteDemo:unspecified
檢查項目的build.gradle文件是否與您的Android Studio版本匹配。 該項目可能是為舊版本的Android Studio編寫的。
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven{
url "http://maven.google.com"
}
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.