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 .
system/vendor/lib.
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.
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.
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
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.
Now you can browse to the external libraries to see the sources.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With