简体   繁体   English

使用低于compileSdkVersion的支持库版本

[英]Using support library version lower than compileSdkVersion

I work with android studio and in build.gradle file some dependencies are underlined in red. 我使用android studio,在build.gradle文件中,某些依赖项用红色下划线标出。 The message is : 消息是:

This support library should not use a different version (25) than the compileSdkVersion (26) 该支持库不应使用与compileSdkVersion(26)不同的版本(25)。

I know how to resolve this (just use the same version) but my question is : what will happen if I leave it that way ? 我知道如何解决这个问题(只是使用相同的版本),但是我的问题是:如果我这样解决,会发生什么? Will I have problems knowing that my config is : 我是否知道我的配置是:

  • targetSdkVersion 26 targetSdkVersion 26
  • compileSdkVersion 26 编译版本26

Thank you for your answer and have a nice day :) 谢谢您的回答,祝您有美好的一天:)

Your app may run fine. 您的应用程序可能运行良好。 Or it may crash. 否则可能会崩溃。 In short, mismatching support library and compile versions may/will lead to undefined behavior. 简而言之,不匹配的支持库和编译版本可能/将导致不确定的行为。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 支持库和compileSdkVersion版本不匹配 - Support library and compileSdkVersion version mismatch Android:将compileSdkVersion设置为比最新api更低的版本是否有优势? - Android: Is there an advantage to setting compileSdkVersion to a lower version than the latest api? 是否可以使用支持库在较低版本中使用Kitkat的WebView - Is it possible to use Kitkat's WebView in lower version using support library Android studio错误此支持库不应使用较低版本(19) - Android studio error This support library should not use a lower version (19) 支持库必须使用compileSdkVersion 28的确切版本规范错误 - Support libraries must use the exact version specification error with compileSdkVersion 28 我在使用 RecyclerView 支持库时已将 CompileSdkVersion 从 25 更改为 29,但没有可用的版本 29 - I have changed the CompileSdkVersion from 25 to 29 while I am using RecyclerView support lib but there is no version 29 available 较低的android版本对mvvmcross的支持 - Lower android version support of mvvmcross 在其中一个依赖项中使用旧版本的支持库 - Using older version of support library in one of the dependencies Gradle不使用最新版本的支持库吗? - Gradle not using latest version of the support library? 该项目可能正在使用不包含“compileSdkVersion()”方法的 Gradle 版本 - The project may be using a version of Gradle that does not contain the method 'compileSdkVersion()'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM