Could not resolve com.android.supportsupport-annotations25.4.0
来源:互联网 发布:腾讯体育软件 编辑:程序博客网 时间:2024/06/11 03:42
概述
最近在做客户项目的维护工作,才进项目,那边的同事不知道要干啥把Support升级到了25.4.0,我给看懵逼了。
Sdk manager 都找不到的。
不信可以试试
androidTestCompile "com.android.support:support-annotations:25.4.0"
解决办法
查了无数资料,有以下几种答案
1 降低版本吧,你这个太高了
确实一般情况下降一个现行的版本就ok了,但是这个项目不晓得客户用的啥东西,降低版本后还有别的一堆错误。
2 Sdk Manager里面更新一下Libraried Repository
然而,目前最新的就是47,也没有25.4.0,可以到
..\extras\android\m2repository\com\android\support\support-annotations
这个目录下自己去看,也是没有的
去看官网文档?拿好不谢,然后他也是让你更新库,降低最高版本。没啥卵用
https://developer.android.com/topic/libraries/support-library/revisions.html#25-4-0
3 依赖Google的 Maven 库
搞得时间长了也找到了答案,这个库是google放在自己的maven维护的,需要依赖他的库。在根目录build.gradle中写入如下代码
allprojects { repositories { jcenter() maven { url 'https://maven.google.com/' name 'Google' } mavenCentral() }}
OK!搞定,继续开心的codding ~~
阅读全文
0 0
- Could not resolve com.android.supportsupport-annotations25.4.0
- Could not resolve com.android.tools.build:gradle:0.5.+
- Could not resolve com.android.support:appcompat-v7:22.2.1
- Could not resolve com.android.tools.build:gradle:1.0.0+.
- Could not resolve all files for configuration ':classpath'.Could not find com.android.tools.
- Could not resolve all dependencies for configuration ':classpath'. Could not find com.android.t
- could not resolve host: github.com
- ionic build android Could not resolve com.android.tools.build:gradle:1.5.0
- ionic build android Could not resolve com.android.tools.build:gradle:1.5.0
- android studio " Could not resolve com.android.support:appcompat-v7:26.1.0"
- 【JAVA学习】hibernate could not resolve property: com of
- apt-get: Could not resolve 'archive.ubuntu.com'
- apt-get: Could not resolve 'archive.ubuntu.com'
- apt-get: Could not resolve 'archive.ubuntu.com'解决方法
- curl: (6) Could not resolve host: www.baidu.com;
- could not resolve host: github.com 问题解决办法
- git 出现错误 Could not resolve host: github.com
- 解决Could not resolve host: github.com; Unknown error
- jquery制作简单的投票系统
- AES加密
- 程导微编MikroElektronika.Compilers.and.Software.Tools.2017.09 11CD
- ARM输入输出
- ubuntu14.04拒绝winscp的连接请求问题的解决笔记
- Could not resolve com.android.supportsupport-annotations25.4.0
- 编译LEDE-Openwrt系统
- Idea快捷键
- Python2.7+PyQt4 QtDesigner学习笔记系列——3:QtDesigner第一个小程序
- 小米XiaoMi MIUI 7/8/9开发版怎么设置锁屏QQ来消息时弹出消息框?
- VirtualBox 复制虚拟机网络连接失败
- 25、C#里面TextBox编辑框的使用
- Docker中运行consul集群
- java创建文件和目录