解决 Android Studio:Failed to resolve: com.android.support:appcompat-v7:29.+ 错误

这个问题,困扰了我一天,终于解决,

问题的根本就是 Android studio 的 SDK Build-Tools 与工程所需的不一致。具体讲解如下:

具体解决方案:

1.既然是版本问题,那就的先去了解自己的电脑安装的SDK工具版本,点开SDK Manager图标,然后选中 Updates 就可以看到了

这里我的 sdk 工具版本就是26.1.1 了

2.做如下修改

3.rebuild 一下

4.按照提示下载相应版本工具

(宝宝心里苦啊,找了一天解决方案)
实在是太感谢博主 暴走邻家 了

原文地址:https://www.cnblogs.com/bjxqmy/p/12193783.html

时间: 2024-10-14 11:47:23

解决 Android Studio:Failed to resolve: com.android.support:appcompat-v7:29.+ 错误的相关文章

(转)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

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

Android添加百分比布局库时显示Failed to resolve: com.android.support.percent:问题

这是看第一行代码中遇到的问题,要添加百分比布局库的依赖时要在app下的bulid.gradle添加以下代码 implementation fileTree(dir:'libs',include:['*.jar'])implementation 'com.android.support:appcompat-v7:28.0.0'implementation 'com.android.support:percent:28.0.0' testCompile 'junit:junit:4.12' 注意这一

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

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

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:appcompat-v7:27.0.1问题解决

今天,在毫无征兆的情况下AndroidStudio又抽风了,搞了大半天,试了网上众多方案,终于解决了这个问题.咱们一步一步来 第一步:这是最开始的bug Error:Failed to resolve: com.android.support:support-annotations:27.0.1 Install Repository and sync projectOpen FileShow in Project Structure dialog Error:Failed to resolve:

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

异常信息记录: Error:Failed to resolve: com.android.support:support-annotations:26.0.2 <a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:D:/AndroidStudioProjects/Qsb2/appild.gradle">

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

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