You need to download support: appcompat-v7: 22.1.1 and support: support-v4: 21.1.2. I just can not find them. Studio offers download only 23+. Poke my nose, what am I doing wrong?

  • And why do you need an outdated version of the library? - Yuriy SPb
  • one
    there is a suspicion. that v-4 and v-7 should be the same either revision 21 or revision 22. In the build.gradle, specify in dependencies what you want to download. but in this case you have several parameters that should be synchronized: compileSdkVersion, buildToolsVersion, targetSdkVersion and the versions of the appcompat libraries - Alex Ziko
  • @YuriySPb for the latest “new” version 23+ to work, you need to update the studio, and the updated studio contains an interface that is very different from the previous ones. I just learn programming on android and all the lessons on the old versions. - ivanovd422
  • @AlexZiko my typo, I'm wondering where to download version 21.1.2. specified in Build: compileSdkVersion 21 buildToolsVersion "21.1.2" minSdkVersion 11 targetSdkVersion 21 compile fileTree (dir: 'libs', include: [' * .jar ']) compile' com.android.support:appcompat-v7:21.1.2 'compile' com.android.support:support-v4:21.1.2 'But while synchronizing, the studio swears that there are no libraries listed above. It is logical to assume that they need to download, right? - ivanovd422
  • one
    here's a list of developer.android.com/tools/support-library/… revisions - Alex Ziko

2 answers 2

You need to manually specify the versions of libraries you need in build.gradle . At the same time you need:

  1. Download via SDKManager Android Support Repository
  2. Download the API versions you need there.
  3. Ensure that the compileSdkVersion , buildToolsVersion , targetSdkVersion match the version of the support libraries you need.
  4. To accept the fact that the studio will emphasize all these lines and insist on updating them.

And the best thing is not to suffer from garbage and use the latest versions of all libraries and other tools offered by the studio, to avoid meeting with all the bugs that are in the old versions and which are corrected in the new ones. Indeed, in the case of pushing them, nothing will help you except updating all components to the latest versions.

  • I do everything. 1. via SDKManager installed, but there is installed Android Support Repository version 23.0.0 (maybe this is the problem? How to download the old version?) 2. Android 5.0.1 (API 21) all items in this section are downloaded 3. Everything noted 4. Underscores are not important) How can you be contacted directly? - ivanovd422
  • Items 1 and 3 (in case of downgrade) are optional. Yes, and 2 too. - pavlofff
  • @DenisMolodec, there is no point in contacting directly. To check the performance of my version - it is necessary to pervert properly. Perhaps you need to download other APIs ... In any case, you should not do this. You need to use the latest versions, and what you want to do is a waste of time. This is for you here (and not only here) everyone will say. - JuriySPb
  • @DenisMolodec, the fact that examples from the old versions should not worry you. In 95% of cases, this does not affect anything. - JuriySPb
  • @pavlofff, I almost randomly wrote. I find it hard to imagine why it is possible to do this seriously) - YuriySPb

support: appcompat-v7: 22.1.1 does not exist and cannot be downloaded anywhere.

Released revisions of google support libraries.

For an existing library revision, it is sufficient in the dependences section to indicate its version in the application's build.gradle file:

  compile 'com.android.support:appcompat-v7:22.1.0' 

Version 22.1.0 library will be connected here.

Or

  compile 'com.android.support:appcompat-v7:22.*' 

Latest available from revision 22