Here in my project, I just noticed that my buildToolsVersion "23.0.2" like this ... And the version numbers of the libraries I added

 compile 'com.android.support:design:23.0.2' compile 'com.android.support:support-v4:23.2.0' compile 'com.android.support:appcompat-v7:23.2.1' 

everything is different ... And highlighted in yellow, when I move the cursor it says that a new version is available ... I changed all the libraries to new ones and the project stopped loading showing a bunch of errors and from here I had 2 questions

  1. Should the library version numbers actually match the buildToolsVersion number?

  2. Do you really need to keep the latest versions of libraries in your project, or if it works like this then it’s better not to touch?

    1 answer 1

    1. No, they should not. The only limitation is that the support version of the library must be at least the version of the SDK used. For example, if you are using SDK 22, then libraries must be version 22 or older.
    2. It is desirable to do so, but not necessarily. I usually do not hurry with it, because often there are bugs in innovations that are fixed in minor versions (23.0.1, 23.0.2 ...)
    • And which version is now considered the latest and stable? - Aleksey Timoshchenko
    • @AlekseyTimoshchenko, everyone thinks differently. I am using 22.0.0 and targetSdk 22 - Vladyslav Matviienko
    • and sdk version, too, I understand, should then be no higher than 22 - Aleksey Timoshchenko