简体   繁体   English

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

[英]Error “Could not find com.android.support:appcompat-v7:22.2.0”

Im using github template product-catalogue-android-master 我正在使用github模板product-catalogue-android-master

When i try clone thins...the same error occur and i dont know what to do... Im using Android studio 1.4, JRE 1.8, SDK Build 22.0.1. 当我尝试克隆Thins时...发生相同的错误,我不知道该怎么办...我正在使用Android Studio 1.4,JRE 1.8,SDK Build 22.0.1。 Already put gradle 2.2.1 in project user/gradle/wrapper/dists/ and both gradle 2.2.1 and 2.4 in AS gradle folder 已将gradle 2.2.1放在项目user / gradle / wrapper / dists /中,并将gradle 2.2.1和2.4放入AS gradle文件夹中

error says 错误说

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.

BUILD FAILED 建立失败

What should i do next...anyone can guide me? 接下来我该怎么办...任何人都可以指导我?

Update your Android Support Repository, Android Support Library 更新您的Android支持存储库,Android支持库

And set 并设置

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

And

 compileSdkVersion 23
 buildToolsVersion "23.0.1"

and

targetSdkVersion 23

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Gradle - 错误找不到 arguments 的方法 implementation() [com.android.support:appcompat-v7:26.0.0] - Gradle - Error Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0] 实施 'com.android.support:appcompat-v7:28.0.0' - 错误 - implementation 'com.android.support:appcompat-v7:28.0.0' - Error 找不到参数[com.android.support:appcompat-v7:28.0.0]的方法Implementation() - Could not find method implementation() for arguments [com.android.support:appcompat-v7:28.0.0] gradle 构建错误:无法解析 com.android.support:appcompat-v7:28.0.0 - gradle build error: Could not resolve com.android.support:appcompat-v7:28.0.0 什么是com.android.support:appcompat-v7? - What is com.android.support:appcompat-v7? '实施'com.android.support:appcompat-v7:27.1.1'问题 - 'Implementation 'com.android.support: appcompat-v7:27.1.1' issue 我收到错误消息'编译'com.android.support:design:23.0.1'编译'com.android.support:appcompat-v7:23.0.1' - I am getting the error' compile 'com.android.support:design:23.0.1' compile 'com.android.support:appcompat-v7:23.0.1' 实现'com.android.support:appcompat-v7:28.0.0'显示错误 - implementation 'com.android.support:appcompat-v7:28.0.0' showing an error 错误崩溃实现'com.android.support:appcompat-v7:28.0.0' - error crash implementation 'com.android.support:appcompat-v7:28.0.0' 为什么我在此代码实现'com.android.support:appcompat-v7:27.1.1'时出错 - Why i am getting error on this code implementation 'com.android.support:appcompat-v7:27.1.1'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM