错误“找不到com.android.support:appcompat-v7:22.2.0"

时间:2015-10-18 11:29:19

标签: java android

我正在使用github模板product-catalog-android-master

当我尝试克隆时...发生同样的错误,我不知道该怎么做...... 我使用的是Android Studio 1.4,JRE 1.8,SDK Build 22.0.1。 已将gradle 2.2.1放入项目用户/ gradle / wrapper / dists / 并且AS gradle文件夹中的gradle 2.2.1和2.4

错误说

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find com.android.support:appcompat-v7:22.2.0.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.pom
         https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.jar
         https://repo.commonsware.com.s3.amazonaws.com/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.pom
         https://repo.commonsware.com.s3.amazonaws.com/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.jar
         file:/C:/Android-sdk/extras/google/m2repository/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.pom
         file:/C:/Android-sdk/extras/google/m2repository/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.jar
     Required by:
         product-catalogue-android-master:app:unspecified
   > Could not find com.android.support:cardview-v7:22.2.0.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/support/cardview-v7/22.2.0/cardview-v7-22.2.0.pom
         https://jcenter.bintray.com/com/android/support/cardview-v7/22.2.0/cardview-v7-22.2.0.jar
         https://repo.commonsware.com.s3.amazonaws.com/com/android/support/cardview-v7/22.2.0/cardview-v7-22.2.0.pom
         https://repo.commonsware.com.s3.amazonaws.com/com/android/support/cardview-v7/22.2.0/cardview-v7-22.2.0.jar
         file:/C:/Android-sdk/extras/google/m2repository/com/android/support/cardview-v7/22.2.0/cardview-v7-22.2.0.pom
         file:/C:/Android-sdk/extras/google/m2repository/com/android/support/cardview-v7/22.2.0/cardview-v7-22.2.0.jar
     Required by:
         product-catalogue-android-master:app:unspecified

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

建立失败

接下来我该怎么办......有人可以指导我吗?

1 个答案:

答案 0 :(得分:1)

更新您的Android支持资源库,Android支持资料库

并设置

compile 'com.android.support:appcompat-v7:23.0.1'

并且

 compileSdkVersion 23
 buildToolsVersion "23.0.1"

targetSdkVersion 23