Reputation: 375
Can any one tell me how to install Android Support library manually? Because I have problem with my SDK Manager unable to find required library and also packages need to develop an application. But I could manage with other packages manually now I cant find support libraries to download even official website shows how to download through SDK Manager but not manually. What if SDK Manager doesnt work properly like me?
Upvotes: 29
Views: 50875
Reputation: 366
Direct downloading of android-support-v4.jar
through SDK manager is no longer exist. Instead, you can use .aar files in the path (\extras\android\m2repository\com\android\support\support-v4
) to get the .jar files.
Refer How to convert AAR to JAR
Some Background
Most of the support libraries are compiled into apps and they are distributed to be consumed by apps through the Google Maven repository. Most of the support libraries are AARs.The AAR file consists of a JAR file and some resource files.
Secondly, You need to get downloaded the google support repository through SDK manager.
Upvotes: 3
Reputation: 19848
I have been trying to figure this out ALL DAY LONG. Finally came across the right stuff online and so I'll share with you here.
Via command line:
android list sdk -a --extended
You will receive a list of all the valid packages to be downloaded and installed. You might need to adjust your buffer size to see them all. Snippet below
----------
id: 84 or "source-14"
Type: Source
Desc: Sources for Android SDK, API 14, revision 1
----------
id: 85 or "extra-android-m2repository"
Type: Extra
Desc: Android Support Repository, revision 5
By Android
Local Maven repository for Support Libraries
Install path: extras\android\m2repository
----------
id: 86 or "extra-android-support" <-- YOU ELUSIVE SOB
Type: Extra
Desc: Android Support Library, revision 19.1
By Android
Install path: extras\android\support
----------
id: 87 or "extra-google-admob_ads_sdk"
Type: Extra
Desc: Google AdMob Ads SDK, revision 11 (Obsolete)
By Google Inc.
AdMob Ads SDK
Install path: extras\google\admob_ads_sdk
----------
id: 88 or "extra-google-analytics_sdk_v2"
Type: Extra
Desc: Google Analytics App Tracking SDK, revision 3
By Google Inc.
Analytics App Tracking SDK
Install path: extras\google\analytics_sdk_v2
----------
id: 89 or "extra-google-gcm"
Type: Extra
Desc: Google Cloud Messaging for Android Library, revision 3 (Obsolete)
By Google Inc.
GCM library has been moved to Google Play Services
Now:
android update sdk --no-ui -a --filter "extra-android-m2repository"
Hope this helps someone. I wasted a LOT of time tracking this guy down.
Upvotes: 42
Reputation: 1839
you can directly download from here
and then unzip it in the extras folder
Upvotes: 13
Reputation: 21
I had a similar problem with downloading the Android Support Repository. I tried downloading the Repository through the SDK Manager in Android Studio. However, the SDK manager could not access certain folders (my SDK was locaated in my C:\ drive and I needed administrator permissions etc etc...).
I solved it by:
The SDK Manager should pop up immediately. You should also see a list of previously installed packages.
Hope this works for you.
Upvotes: 2
Reputation: 20041
you can find under the Extras in Android SDK manager
after you installed you go to your android SDK (make sure your location)
in that you can find the location
<sdk>/extras/android/support/v4/android-support-v4.jar.
or
<sdk>/extras/android/compatibility/v4/android-support-v4.jar.
<sdk>/extras/android/compatibility/v7/gridlayout/
<sdk>/extras/android/compatibility/v13/android-support-v13.jar.
Upvotes: 10