Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find Android support libraries source code (v4, v7 & v13)

Tags:

android

I am unable find the source when after I downloaded the SDK. Has it been removed from public access?

like image 783
zhyper Avatar asked Oct 09 '13 17:10

zhyper


People also ask

What is v4 and v7 in Android?

The name of these packages ends with the minimum version of Android API supported by the libraries. For example, package name support-v4 and the support-v7 indicate that the minimum supported Android API version is 4 and 7 respectively.

Which v7 support libraries are used for modifying UI settings?

v7 Preference Support Library The preference package provides APIs to support adding preference objects, such as CheckBoxPreference and ListPreference , for users to modify UI settings. The v7 Preference library adds support for interfaces, such as Preference. OnPreferenceChangeListener and Preference.


1 Answers

Some of the src folders on my copy of the samples, found at $SDK_DIR/extras/android/support/ seem to be empty. For example, v7/gridlayout/src/ is an empty folder, but most of my v4 folders have the source code supplied alongside the download from the SDK Manager, so I'm going to guess you and I are seeing the same issue.

However, you can always download the source directly from the source (no pun intended):

Doing a git clone https://android.googlesource.com/platform/frameworks/support/ to download the support library files direct from Google's repository seems to contain all of the source files.

like image 190
Kasra Rahjerdi Avatar answered Sep 18 '22 08:09

Kasra Rahjerdi