sources-for-android-sdk
sources-for-android-sdk copied to clipboard
A custom "Sources for Android 34" package built from the Android 14 SDK Platform source code
Sources for Android SDK
The Sources for Android SDK package provides instant access to the documentation and source code of system framework in Android Studio. Without this package, documentations will be loaded from network, and system classes has to be decompiled when you ctrl + click on them to view the source.
Unfortunately, this package does not become available during the Developer Preview, which slows down debugging and development while test-driving the upcoming compileSdkVersion. This GitHub Actions workflow can build that package from a developing branch of the SDK platform source repo.
This package can also be updated normally using the SDK updater when the official version becomes available. But my recommendation is to uninstall this package from the SDK Manager first; otherwise it takes a long time to install the update due to the patching mechanism of SDK update.
You can enable GitHub Release Watch to get notified when a new build gets released on this repo.
Usage
- Download the package from Releases and extract the
android-34folder from the package - Move the extracted folder into the Android SDK Location's
/sourcesdirectory. - Restart Android Studio.
Build it Yourself
- Fork this repo on GitHub.
- Create a new token with No expiration.
- Go to the Repo Actions Secrets and add the generated token named as
PAT. - Now go to the Build Android SDK Sources Package Workflow and select
Run workflowdropdown menu. - Pick and enter a Platform Source Branch Name from the Google Android Source Repo, API Level and Version Name (optional).
API Level should be Integer only. Builds with String levels like UpsideDownCake don't get recognized in Android Studio.
- Run the workflow and wait for the package to appear on the Releases.
Acknowledgements
Based on the build instructions from this gist.
Information
Author: Nissan Ahmed (@ni554n)
Donate: PayPal