资讯详情

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

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. 根据路径 找到
3.  可以看到版本号是21+,所以更改  

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

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

同理根据上面方法打开

标签: 1100v720uf电容器

锐单商城拥有海量元器件数据手册IC替代型号,打造 电子元器件IC百科大全!

锐单商城 - 一站式电子元器件采购平台