Error:(24, 13) Failed to resolve: com.android.support:recyclerview-v7:20.+ <a href="install.m2.repo"

原创 2015年07月07日 10:04:34

Android studio   报错    Error:(24, 13) Failed to resolve: com.android.support:recyclerview-v7:20.+

<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

   Error:(25, 13) Failed to resolve: com.android.support:leanback-v17:20.+
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>


点击运行  报
Error:A problem occurred configuring project ':myapplication'.
> Could not resolve all dependencies for configuration ':myapplication:_debugCompile'.
   > Could not find any version that matches com.android.support:recyclerview-v7:20.+.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/support/recyclerview-v7/maven-metadata.xml
         https://jcenter.bintray.com/com/android/support/recyclerview-v7/
         file:/D:/adt/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2repository/com/android/support/recyclerview-v7/maven-metadata.xml
         file:/D:/adt/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2repository/com/android/support/recyclerview-v7/maven-metadata.xml
         file:/D:/adt/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2repository/com/android/support/recyclerview-v7/
     Required by:
         MyApplication2:myapplication:unspecified
   > Could not find any version that matches com.android.support:leanback-v17:20.+.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/support/leanback-v17/maven-metadata.xml
         https://jcenter.bintray.com/com/android/support/leanback-v17/
         file:/D:/adt/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2repository/com/android/support/leanback-v17/maven-metadata.xml
         file:/D:/adt/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2repository/com/android/support/leanback-v17/maven-metadata.xml
         file:/D:/adt/adt-bundle-windows-x86_64-20140702/sdk/extras/google/m2repository/com/android/support/leanback-v17/
     Required by:
         MyApplication2:myapplication:unspecified


解决方案:
  1. 根据路径  找到 file:/D:/adt/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2repository/com/android/support/leanback-v17/maven-metadata.xml

  2.打开maven-metadata。xml    
metadata>
  <groupId>com.android.support</groupId>
  <artifactId>recyclerview-v7</artifactId>
  <version>21.0.0</version>
-<versioning>
-<versions>
  <version>21.0.0</version>
  <version>21.0.2</version>
  <version>21.0.3</version>
  <version>22.0.0</version>
  <version>22.1.0</version>
  <version>22.2.0</version>
  </versions>
  <lastUpdated>20150521233210</lastUpdated>
  </versioning>
  </metadata>

3.  可以看到版本号是21+,所以更改  

com.android.support:recyclerview-v7:20.+为

com.android.support:recyclerview-v7:21.+

同理根据上面方法打开
file:/D:/adt/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2repository/com/android/support/leanback-v17/maven-metadata.xml

<?xml version="1.0" encoding="UTF-8"?>
-<metadata>
  <groupId>com.android.support</groupId>
  <artifactId>leanback-v17</artifactId>
  <version>21.0.0</version>
-<versioning>
-<versions>
  <version>21.0.0</version>
  <version>21.0.2</version>
  <version>21.0.3</version>
  <version>22.0.0</version>
  <version>22.1.0</version>
  <version>22.2.0</version>
  </versions>
  <lastUpdated>20150521233206</lastUpdated>
  </versioning>
  </metadata>
com.android.support:leanback-v17:20.+改为com.android.support:leanback-v17:21.+

android studio使用说明

一.学习的基本配置文档,搞好各种参数的基本配置,熟练使用。 C:\Program Files\Java\jdk1.7.0_09\bin   二.problems meet...
  • wanjunyou
  • wanjunyou
  • 2014年12月21日 15:56
  • 32616

Android *** android studio Error:Failed to resolve:

今天,突然之间AS报错,说’com.android.support:design:23.1.1’找不到了,这怎么可能,我一直都用着它啊,我一直在app.gradle中添加引用啊 compil...
  • mp624183768
  • mp624183768
  • 2018年01月06日 19:24
  • 95

Android Studio 错误Error:(16, 13) Failed to resolve: com.android.support:support-v4:15.+ android.vi

错误1: Error:(16, 13) Failed to resolve: com.android.support:support-v4:15.+ Install Repository and ...
  • Tom_xiaoxie
  • Tom_xiaoxie
  • 2015年12月04日 08:38
  • 5168

Android studio 软件安装过程中遇到的问题

我估计是在安装过程中遇到问题最多的一个人了 ....按照《第一行代码》书中内容,应该建立一个HelloWorld项目,但是刚一建立,就出现一堆红色的错误。 第一个问题是“could not find...
  • qq_31390999
  • qq_31390999
  • 2018年01月14日 17:52
  • 155

Failed to resolve:com.android.support:appcompat-v7:报错处理

你在使用android studio时是否也出现过上图的报错,你还在为它的出现烦恼?没问题,看了本文章,我确保你会顺利解决掉它并会很骄傲的认为这只是一个小case级别的报错。我们进入正题吧,先来说下什...
  • mhl18820672087
  • mhl18820672087
  • 2017年10月29日 14:44
  • 9876

Error:Failed to resolve: com.android.support:support-annotations:26.0.2

异常信息记录:  Error:Failed to resolve: com.android.support:support-annotations:26.0.2 Install Repository...
  • pyfysf
  • pyfysf
  • 2017年09月08日 14:30
  • 6483

android studio 导入其他project遇到 Could not find com.android.support:support-v4:19.0.0.

Error:A problem occurred configuring project ':app'. > Could not resolve all dependencies for confi...
  • yagamil
  • yagamil
  • 2015年02月06日 11:38
  • 4929

[已解决]Failed to resolve:com.adnroid.support:design:23.4.0

报错:Failed to resolve:com.adnroid.support:design:23.4.0 解决办法: 点击 Install Repository and sync pr...
  • Rodulf
  • Rodulf
  • 2016年05月30日 10:50
  • 5048

failed to resolve com.android.support:appcompat-v7:23+ 解决方法

failed to resolve com.android.support:appcompat-v7:23+ 解决方法
  • tianc001
  • tianc001
  • 2016年01月02日 16:16
  • 10978
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Error:(24, 13) Failed to resolve: com.android.support:recyclerview-v7:20.+ <a href="install.m2.repo"
举报原因:
原因补充:

(最多只允许输入30个字)