Using support library version lower than compileSdkVersion

Viewed 307

I work with android studio and in build.gradle file some dependencies are underlined in red. The message is :

This support library should not use a different version (25) than the compileSdkVersion (26)

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
  • compileSdkVersion 26

Thank you for your answer and have a nice day :)

1 Answers

Your app may run fine. Or it may crash. In short, mismatching support library and compile versions may/will lead to undefined behavior.

Related