This support library should not use a different version(x)than the compileSdkVersion(y)
来源:互联网 发布:软件日记 编辑:程序博客网 时间:2024/06/06 03:15
与这个错误是同个原理的,请举一反三:This support library should not use a different version(x)than the targetSdkVersion(y)。一个是编译版本不一致,一个是目标版本不一致。
- com.android.support:recyclerview-v7:x.x.x
- com.android.support:recyclerview-v7:x.x.x
- com.android.support:support-v4:x.x.x
- com.android.support:support-v7:x.x.x
……
在导入这些包之后,报了这个错This support library should not use a different version(x)than the compileSdkVersion(y)。
原因是你的compileSdkVersion版本(即编译版本)与你所导入的support包的版本不同。如果你的编译版本的API是23。那你导入的support包对应的API也应该是:23.x.x。
以要导入V7包,然后编译版本的API为24为例:
则导入的应该是 compile ‘com.android.support:support-v7:24.x.x’
至于24后面的x.x,是指24版下的子版本,是多少就无所谓了。我现在要导入的是:
compile ‘com.android.support:recyclerview-v7:24.1.1’是这个。而且编译版本的API是24.
阅读全文
0 0
- This support library should not use a different version(x)than the compileSdkVersion(y)
- This support library should not use a different version(x)than the compileSdkVersion(y)
- 关于This support library should not use a different version than the compilesdkversion
- This support library should not use a different version (24) than the compileSdkVersion (23)...
- This support library should not use a different version (25) than the compileSdkVersion
- Android Studio 使用教程(十五)之 This support library should not use a different version(x)than the compileS
- Android添加依赖出现This support library should not use a different version (26) than the compile(25).
- This support library should not use a different version
- 【完美解决系列】This support library should not use a different version
- “(null)” is of a model that is not supported by this version of Xcode. Please use a different device
- “(null)” is of a model that is not supported by this version of Xcode. Please use a different device
- “gjw” is of a model that is not supported by this version of Xcode. Please use a different device.
- This version of the rendering library is more recent than your version of IntelliJ IDEA.
- This version of the rendering library is more recent than your version of IntelliJ IDEA
- This version of the rendering library is more recent than your version of Android Studio.
- This version of the rendering library is more recent than your version of ADT pl
- This version of the rendering library is more recent than your version of ADT ..解决办法
- The ODBC resource dll is a different version than the ODBC setup dll
- Spring data jpa 多表查询(三:多对多关系动态条件查询)
- ubuntu 14.04 登录黑屏和登录死循环
- JVM笔记1_java内存区域与溢出异常
- 扩展名的隐藏与显示
- soapui接口性能测试(三)---- 验证性能
- This support library should not use a different version(x)than the compileSdkVersion(y)
- lucene 4.10 检索mysql数据库
- JAVA设计模式之建造者模式
- 欢迎使用CSDN-markdown编辑器
- 启动tomcat报错java.lang.OutOfMemoryError: PermGen space的解决方法
- ubuntu 14.04 安装ROS 教程
- 交换两个数的两种方法
- 一款更好的服务器——腾讯云服务器——云企互动
- Linux中磁盘管理命令