Android项目刷新失败:gradle构建失败

时间:2016-09-30 06:13:57

标签: android maven android-studio build android-gradle

Error:Could not find com.android.tools.build:gradle:2.2.0.
Searched in the following locations:
    https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.pom
    https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.jar
Required by:
    HapiKey Project:camera:unspecified

1 个答案:

答案 0 :(得分:0)

将jcenter添加到项目级build.gradle中的存储库

buildscript { repositories { jcenter() } // ... }