Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find every version of android support libraries source code

I meets some problems so I want to find the source code of the Android support libraries . For example , I want to read the ActionBarActivity.java source code in version 19.0.1 and 20.0.0 in support.appcompat-v7 , and find out the difference between the two versions.

I found the https://github.com/android/platform_frameworks_base , but the release have named as android-x.x.x_rxx but not like 19.0.1 .

like image 879
binkery Avatar asked Feb 04 '16 08:02

binkery


People also ask

Where are Android libraries stored?

system/vendor/lib.

Is Android support library deprecated?

0, the android. support -packaged libraries are deprecated and replaced by individually-versioned Jetpack libraries packaged as androidx . The initial 1.0. 0 release of the Jetpack libraries provides parity with Support Library 28.0.

Which of the following is the replacement for Android support libraries?

AndroidX is intended to replace the Support Library. Like support library, AndroidX is shipped independently from the Android OS and provides backward-compatibility across Android releases.


2 Answers

You can download prebuilt source jars by version from here https://android.googlesource.com/platform/prebuilts/maven_repo/android/+/master/com/android/support/appcompat-v7

Although it seems they have removed sources for anything older than 22.1.0 there.

Alternatively you can get all changes for a specific file here https://android.googlesource.com/platform/frameworks/support/+log/master/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java

like image 121
Alex P. Avatar answered Oct 06 '22 23:10

Alex P.


You can browse to your sdk directory and support directory and you can find the aar files there- on mac its i located on

/Users/username/Library/Android/sdk/extras/android/m2repository/com/android/support/

Ensure you are having the the version you want to see. And Then change the version in your gradle.build to the one you need. Then sync the project, Now Change the explorer mode of android studio to the project mode.

enter image description here

Now you can browse to the external libraries to see the sources.

enter image description here

like image 2
Sanjeet A Avatar answered Oct 07 '22 01:10

Sanjeet A