12

I can see in the Android SDK manager the version installed on my computer (in Android SDK manager), but usually a project uses its own copy from the libs folder.

Is there a way I can tell which version is the android-support-v4.jar being used in a specific project besides the file date?

Any method is considerable - by code / eclipse / file manager

Asaf Pinhassi
  • 15,177
  • 12
  • 106
  • 130
  • what do you mean by which v4 revision you use ? anyway try read here http://developer.android.com/tools/extras/support-library.html#Notes – Tomer Mor Feb 05 '13 at 07:09
  • 2
    In the link you supplied, you can see that there are 11 revisions. How can I tell which one is currently in use in my project? – Asaf Pinhassi Feb 05 '13 at 07:14
  • Do you mean, programmatically ? – Siddharth Feb 05 '13 at 07:40
  • I agree with you, Pinhassi. This hasn't been thought through properly by Google because the list of revisions doesn't include file size or SHA1 to allow identification, see: http://developer.android.com/tools/support-library/index.html#revisions – Someone Somewhere Mar 20 '14 at 23:27

5 Answers5

5
  1. in eclipse package explorer right click in your project
  2. select android tools -> Add supported Library

    there you see which supprt library revision id you have, in my case is 11 enter image description here

Tomer Mor
  • 7,998
  • 5
  • 29
  • 43
  • 2
    It prompts for a supported Library installation, it downloads and installs it on your computer, it doesn't affect your current project – Muky Feb 05 '13 at 16:59
2
  • Take the md5 hash of the jar in your app's libs directory.
  • Compare it to the hashes of support library jar files to work out exactly which one you're using.

e.g. to generate hashes you could use: http://nule.org/wp/?page_id=86 run this from a batch file with:

java -jar JMd5Sum.jar
fr1550n
  • 1,055
  • 12
  • 23
0

when you are selecting android Tools -> Add support Library option .it has automatically added compatible v4 library .android os is telling which one is compatible with your project. If you wants to add particular version of any jar .firstly you have downloaded and put manully in libs folder then it added as external jar.

0

Build a SHA1 hash of the support library v4 jar file and compare the result with the listed hashes here: http://www.smartphoner.org/2014/11/23/android-support-library-v4-revisionen-und-hashes/

Nower days the actual support library revision is equal to the api level of the newest android version. Currently this is 21 (Lollipop).

Tregi
  • 19
  • 2
0

Android SDK can show the version of Android support Repository, and make sure you download Android Support Repository by using Android SDK Manager.

Android SDK

If you really want to add an old support lib, you can check the version under Android studio. Right click your project, select "Open Module Settings" -> then select your app modules -> "Dependencies" . You can check your support lib version.

Dependencies

einverne
  • 6,454
  • 6
  • 45
  • 91