Reputation: 1050
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
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
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
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
Right Click on your project and Click on Properties
Go to Java Build Path > Libraries > Add jar > Browse the jar in your project libs folder and add it.
Upvotes: 1
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
Reputation: 1050
cd android-sdks/tools
./android sdk
Upvotes: 0