Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the android-support-v4.jar file (from Android Support Library) on Linux?

Tags:

linux

android

Reading "The import android.support cannot be resolved" I can see that I require a file named android-support-v4.jar . Reading http://developer.android.com/tools/support-library/setup.html I can see that I need the SDK Manager. But where can I just get the file?

like image 737
Julien Lamarche Avatar asked Nov 05 '14 22:11

Julien Lamarche


3 Answers

The directory has been removed. Now it is under ../extras/m2respository/com/android/support/support-v4/21.0.0... and so on.
The file name is now support-v4-20.0.0.jar and so on.

like image 116
Lua Kim Teng Avatar answered Nov 10 '22 22:11

Lua Kim Teng


Officially, you can get the library downloading the SDK, find your SDK directory, and its located under:

[sdk-dir]/extras/android/support/v4/android-support-v4.jar

Unofficially, here's a java2s-hosted direct download.

like image 13
Jorgesys Avatar answered Nov 11 '22 00:11

Jorgesys


You can find this jar under your android SDK dir:

/extras/android/support/v4/android-support-v4.jar

and a copy here:

/extras/android/support/v7/appcompat/libs/android-support-v4.jar

like image 1
enl8enmentnow Avatar answered Nov 10 '22 23:11

enl8enmentnow