关于This support library should not use a different version than the compilesdkversion
来源:互联网 发布:淘宝白菜群怎么得佣金 编辑:程序博客网 时间:2024/05/21 05:20
问题描述:this support library should not use a different version than the compilesdkversion
在build.gradle中
dependencies { // lib编译jar包 compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:.21.0+' compile 'com.android.support:recyclerview-v7:.21.0+' compile('io.socket:socket.io-client:0.7.0') { exclude group: 'org.json', module: 'json' } }
解决之道:
①转自:http://stackoverflow.com/questions/32062460/android-appcompat-v723
Original answer:
I too tried to change the support library to “23”. When I changed the targetSdkVersion to 23, Android Studio reported the following error:
This support library should not use a lower version (22) than the targetSdkVersion (23)
I simply changed:
compile ‘com.android.support:appcompat-v7:23.0.0’
to
compile ‘com.android.support:appcompat-v7:+’
Although this fixed my issue, you should not use dynamic versions. After a few hours the new support repository was available and it is currently 23.0.1.
最好不要用动态版本。
Pro tip:
You can use double quotes(双引号) and create a ${supportLibVersion} variable for simplicity. Example:
ext {
supportLibVersion = ‘23.1.1’
}
compile “com.android.support:appcompat-v7:
compile “com.android.support:palette-v7:
compile “com.android.support:gridlayout-v7:${supportLibVersion}”
来源
source: https://twitter.com/manidesto/status/669195097947377664
shareimprove this answer
edited Nov 26 ‘15 at 9:40
answered Aug 18 ‘15 at 3:18
Jared Rummler
12.7k54868
②转自http://stackoverflow.com/questions/29284236/failed-to-resolve-com-android-supportappcompat-v722-and-com-android-supportre
- 关于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(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 (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
- jmeter使用代理录制方法
- ubuntu-ssh
- 工作笔记
- KMP算法
- Android 自定义loading
- 关于This support library should not use a different version than the compilesdkversion
- iOS 应用发布
- xUtils3.0使用介绍
- 线程间的通信、同步方式与进程间通信方式
- 今天写的两个程序。
- oracle11g导出数据库不完善问题解决
- Theano中文翻译教程(二). 基础骗之 More Examples
- Light Oj 1005
- Light OJ 1007