Failed to find : com.android.support:appcompat-v7

在使用Android Studio创建Android项目的时候会出现Failed to find : com.android.support:appcompat-v7错误。如下图:

这是因为Android Studio需要Android Support Repository的支持。

解决此问题需要安装Android Support Repository。

附:安装Android Support Repository的两种常用方法:

方法一:在线安装

打开SDK Manager选择安装Extras下的Android Support Repository即可,如图:

方法二:离线安装

因为在线安装需要访问Google服务器,所以如果你的电脑没有翻墙的话很可能导致安装失败,下面就和大家分享一种离线安装Android资源库的方法。

离线安装Android Support Repository需要”m2repository“,我已经将最新的m2repository安装包上传到了CSDN上,供大家下载:http://download.csdn.net/detail/fengyuzhengfan/8450367

将下载好的android_m2repository_r07解压后复制到\sdk\extras\android目录下重启Android Studio即可。

时间: 2024-11-01 04:46:06

Failed to find : com.android.support:appcompat-v7的相关文章

Android support V3 v7 v13的区别

简单翻译: V4用于1.6到更高的API使用. V7是2.1到更高的API使用,其中包含ACtionBar. V13是3.2到更高的API的使用. 原文: v4 Support Library This library is designed to be used with Android 1.6 (API level 4) and higher. It includes the largest set of APIs compared to the other libraries, inclu

android studio学习----Failed to resolve: com.android.support:design:22.1.1

这个目前好像没有合适的办法,唯一可行的就是 点击那个提示  进行SDK Manager下载就可以了 但是天朝的网啊,我试了很多次,突然的可以下载,运气啊 类似这一系列问题解决办法就是  重新更新SDK吧 failed to resolve com.android.support:appcompat-v7:22 and com.android.support:recyclerview-v7:21.1.2

Failed to resolve: com.android.support:design:25.4.0

韩梦飞沙  韩亚飞  [email protected]  yue31313  han_meng_fei_sha 错误:(27, 13) Failed to resolve: com.android.support:design:25.4.0<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:D:/ka_fa/bi

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

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><

问题解决-Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha7

Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha7     依赖constraintLayout报错 1.原因分析: 使用ConstraintLayout需要在gradle中添加依赖. compile'com.android.support.constraint:constraint-layout:1.0.0-alpha7' clone别人的项目时发现报错误: Failed to res

(转)Android Studio Error:Failed to resolve: com.android.support:appcompat-v7:25.1.0解决方案

今天不知道为什么导入eclipse项目后就出现了错误,没导入之前是正常使用AS的 Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:25.+ 第一.点击Install Repository . 但是Installing Android Support Repository失败了 当然还是可以在SDK那里进行相应版本的安装API 第二.点击Show in Project Structure dialog 更改自己C

Failed to resolve: com.android.support:appcompat-v7:27.+

问题: 碰到这个 "Failed to resolve: com.android.support:appcompat-v7:27.+"并且多次同步失败,之后网上也查了许多方法还是不行 解决办法: 之后我尝试着里面的把"27"改成"24",然后把 中的"27"也改成"24".之后按着提示重新一步步下载, 最后再重新打开AS就搞定了.

Failed to resolve com.android.support:support-compat:25.4.0

3down votefavorite I am trying to include this library to my project by adding compile 'jp.wasabeef:recyclerview-animators:2.2.7' to the dependencies. When the graddle sync happens an error produced like below Failed to resolve com.android.support:su

Error:(27, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2约束布局constraint-layout导入失败的解决方案

运行demo提示错误: Error:(27, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2是你的androidStudio 要安装插件才可以运行这个包. 详细步骤说: a. 点击Tools>android>SDK Manager b. 点击SDK Tools标签 c.选择show pack details,找到support repository->constraintlayou