Julien Lamarche
Julien Lamarche

Reputation: 1050

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

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?

Upvotes: 13

Views: 48831

Answers (5)

Lua Kim Teng
Lua Kim Teng

Reputation: 179

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.

Upvotes: 15

Jorgesys
Jorgesys

Reputation: 126455

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.

Upvotes: 14

heartofrevel
heartofrevel

Reputation: 181

The android-support-v4.jar file is located in

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

Copy and paste this file to your Project libs folder and the add this jar to your build path by

  1. Right Click on your project and Click on Properties

  2. Go to Java Build Path > Libraries > Add jar > Browse the jar in your project libs folder and add it.

  3. Go to order and export tab, and tick(check) on the library.

Upvotes: 1

enl8enmentnow
enl8enmentnow

Reputation: 943

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

Upvotes: 2

Julien Lamarche
Julien Lamarche

Reputation: 1050

  1. cd android-sdks/tools
  2. Run ./android sdk
  3. Click "Install X packages"

Upvotes: 0

Related Questions