This support library should not use a different version(x)than the compileSdkVersion(y)
2017-02-23 17:40
501 查看
转载请注明来源李岳锋的博客
与这个错误是同个原理的,请举一反三:This support library should not use a different version(x)than the targetSdkVersion(y)。一个是编译版本不一致,一个是目标版本不一致。
1、com.android.support:recyclerview-v7:x.x.x
2、com.android.support:recyclerview-v7:x.x.x
3、com.android.support:support-v4:x.x.x
4、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.
与这个错误是同个原理的,请举一反三:This support library should not use a different version(x)than the targetSdkVersion(y)。一个是编译版本不一致,一个是目标版本不一致。
1、com.android.support:recyclerview-v7:x.x.x
2、com.android.support:recyclerview-v7:x.x.x
3、com.android.support:support-v4:x.x.x
4、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.
相关文章推荐
- This support library should not use a different version (25) 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 than the compilesdkversion
- Android添加依赖出现This support library should not use a different version (26) than the compile(25).
- Android Studio 使用教程(十五)之 This support library should not use a different version(x)than the compileS
- This support library should not use a different version
- 【完美解决系列】This support library should not use a different version
- The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.
- This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in问题
- ERROR: The version of SQL Server in use does not support datatype 'datetime2'.
- This version of the rendering library is more recent than your version of ADT plug-in. Please update
- 【转】This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in
- Error: The version of SQL Server in use does not support datatype 'datetime2'
- The version of SQL Server in use does not support datatype 'datetime2'.
- This version of the rendering library is more recent than your version of ADT plug-in. Please update
- This version of the rendering library is more recent than your version of ADT plug-in. Please update
- Android -- uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1
- This version of the rendering library is more recent than your version of ADT plug-in. Please update
- 海洋工作室——网站建设专家:The version of SQL Server in use does not support datatype datetime2 and the Entity Framework.
- This version of the rendering library is more recent than your version of ADT plug-in. Please update