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

Reading " Failed to allow android.support import " I see that I need a file called android-support-v4.jar . Reading http://developer.android.com/tools/support-library/setup.html I see that I need an SDK manager. But where can I get the file?

+10
source share
5 answers

Officially, you can get the library downloading the SDK, find the SDK directory and its location:

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

Unofficially, posted here is a free hosted java2s .

+11
source

The directory has been deleted. Now it is in ../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.

+11
source

You can find this jar under your Android SDK tree:

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

and a copy here:

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

+1
source
  • cd android-sdks/tools
  • Run ./android sdk
  • Click Install Packages X
0
source

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

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

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

  • Right click on your project and click on "Properties"

  • Go to Java Build Path> Libraries> Add jar> Browse the jar in the folder with your projects and add it.

  • Go to the tab "Order" and "Export" and check (check) in the library.
0
source

Source: https://habr.com/ru/post/977793/


All Articles