代码之家  ›  专栏  ›  技术社区  ›  Abd EL Magied

找不到com。安卓工具。构建:渐变:2.2.3

  •  1
  • Abd EL Magied  · 技术社区  · 9 年前

    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
    
    1 回复  |  直到 9 年前
        1
  •  0
  •   Chad H.    9 年前

    检查您的版本。您项目的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"
            }
        }
    }