Android SDK Sources Direct Download

Android SDK Sources

This package contains the source files for the platform/compiler. Tools like Android Studio may show lines of code from these files while you debug your app.We recommend you to install this package.

Last Time Checked

All the packages were last checked on:

All the packages were taken directly from the official Google's Android host.

All Android SDK Sources by API,Version and OSes
NoPackage NameAPIVersionOSSize (MB)
1Sources for Android 34.zip3434.2ALL43.39 MB
2Sources for Android 33.zip3333.1ALL46.93 MB
3Sources for Android 32.zip3232.1ALL44.76 MB
4Sources for Android 31.zip3131.1ALL44.23 MB
5Sources for Android 30.zip3030.1ALL41.26 MB
6Sources for Android 29.zip2929.1ALL37.65 MB
7Sources for Android 28.zip2828.1ALL40.58 MB
8Sources for Android 27.zip2727.1ALL35.28 MB
9Sources for Android 26.zip2626.1ALL33.51 MB
10Sources for Android 25.zip2525.1ALL29.39 MB
11Sources for Android 24.zip2424.1ALL28.87 MB
12Sources for Android 23.zip2323.1ALL30.3 MB
13Sources for Android 22.zip2222.1ALL27.52 MB
14Sources for Android 21.zip2121.1ALL26.96 MB
15Sources for Android 20.zip2020.1ALL22.29 MB
16Sources for Android 19.zip1919.2ALL20.81 MB
17Sources for Android 18.zip1818.1ALL19.29 MB
18Sources for Android 17.zip1717.1ALL18.1 MB
19Sources for Android 16.zip1616.2ALL17.05 MB
20Sources for Android 15.zip1515.2ALL15.71 MB

How to install offline Android SDK Sources?

This package will be installed on the same path with same API number scheme regardless of the specific updates on minor/micro revision numbering.
Different versions with different API number will have their own install location so it's install path will follow Android API numbering shceme.
Upon updates, it upgrades previous installation by overriding existing installation on the same API number only.
You can install ONLY SINGLE VERSION based its specific MAJOR API NUMBER for this package installation.
The offline installation is done using Bash's unzip that is widely avaialble on Windows (with WSL), Linux and Mac.However you can use whatever unzipping/decompressing/extracting tools you like that support extracting .zip, but please pay attention carefully so that the package is installed correctly and is recognized.We use Bash's unzip for this purpose , respectively.

  • Download the latest version of the packages available above.If it has different OSes, choose one that match your development OS.
  • After finished, you can DISCONNECT any internet connections.
  • Locate the downloaded .zip pacakge into accessible location, as you will need that location for installation purpose.
  • Open up CLI/CMD, for Windows make sure you have WSL or Bash for Windows support.
  • Now follow the steps below, it mimics CMD interface to make it easier for you:

X
CMD Install Android SDK Sources manually
@usr~
cd $ANDROID_SDK_ROOT1
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-34_r01.zip -d sources/android-34 && cd sources/android-34 && mv src/* . && rm -rf src(2.A all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-33_r01.zip -d sources/android-33 && cd sources/android-34 && mv src/* . && rm -rf src(2.B all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-32_r01.zip -d sources/android-32 && cd sources/android-34 && mv src/* . && rm -rf src(2.C all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-31_r01.zip -d sources/android-31 && cd sources/android-34 && mv src/* . && rm -rf src(2.D all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-30_r01.zip -d sources/android-30 && cd sources/android-34 && mv src/* . && rm -rf src(2.E all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-29_r01.zip -d sources/android-29 && cd sources/android-34 && mv src/* . && rm -rf src(2.F all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-28_r01.zip -d sources/android-28 && cd sources/android-34 && mv src/* . && rm -rf src(2.G all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-27_r01.zip -d sources/android-27 && cd sources/android-34 && mv src/* . && rm -rf src(2.H all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-26_r01.zip -d sources/android-26 && cd sources/android-34 && mv src/* . && rm -rf src(2.I all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-25_r01.zip -d sources/android-25 && cd sources/android-34 && mv src/* . && rm -rf src(2.J all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-24_r01.zip -d sources/android-24 && cd sources/android-34 && mv src/* . && rm -rf src(2.K all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-23_r01.zip -d sources/android-23 && cd sources/android-34 && mv src/* . && rm -rf src(2.L all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-22_r01.zip -d sources/android-22 && cd sources/android-34 && mv src/* . && rm -rf src(2.M all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-21_r01.zip -d sources/android-21 && cd sources/android-34 && mv src/* . && rm -rf src(2.N all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-20_r01.zip -d sources/android-20 && cd sources/android-34 && mv src/* . && rm -rf src(2.O all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-19_r02.zip -d sources/android-19 && cd sources/android-34 && mv src/* . && rm -rf src(2.P all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-18_r01.zip -d sources/android-18 && cd sources/android-34 && mv src/* . && rm -rf src(2.Q all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-17_r01.zip -d sources/android-17 && cd sources/android-34 && mv src/* . && rm -rf src(2.R all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-16_r02.zip -d sources/android-16 && cd sources/android-34 && mv src/* . && rm -rf src(2.S all)
@usr$ANDROID/SDK/ROOT
rm -rf sources/android-34 && unzip path/to/sources-15_r02.zip -d sources/android-15 && cd sources/android-34 && mv src/* . && rm -rf src(2.T all)

  1. cd $ANDROID_SDK_ROOT
    First, go to the root directory of Android SDK installation. On Windows you might also type:cd %ANDROID_SDK_ROOT%
    Remember! You should only proceed to the next step if only you already in the root directory of Android SDK.
  2. Now, from rootdir of Android SDK, locate the package you've downloaded and then extract the package based on your OS.
    Make sure to change the /path/to/ with absolute path that points to actual downloaded package file location on your local disk.
    1. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-34_r01.zip -d sources/android-34 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 34.2 on all OSes
    2. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-33_r01.zip -d sources/android-33 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 33.1 on all OSes
    3. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-32_r01.zip -d sources/android-32 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 32.1 on all OSes
    4. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-31_r01.zip -d sources/android-31 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 31.1 on all OSes
    5. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-30_r01.zip -d sources/android-30 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 30.1 on all OSes
    6. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-29_r01.zip -d sources/android-29 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 29.1 on all OSes
    7. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-28_r01.zip -d sources/android-28 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 28.1 on all OSes
    8. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-27_r01.zip -d sources/android-27 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 27.1 on all OSes
    9. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-26_r01.zip -d sources/android-26 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 26.1 on all OSes
    10. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-25_r01.zip -d sources/android-25 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 25.1 on all OSes
    11. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-24_r01.zip -d sources/android-24 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 24.1 on all OSes
    12. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-23_r01.zip -d sources/android-23 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 23.1 on all OSes
    13. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-22_r01.zip -d sources/android-22 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 22.1 on all OSes
    14. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-21_r01.zip -d sources/android-21 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 21.1 on all OSes
    15. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-20_r01.zip -d sources/android-20 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 20.1 on all OSes
    16. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-19_r02.zip -d sources/android-19 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 19.2 on all OSes
    17. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-18_r01.zip -d sources/android-18 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 18.1 on all OSes
    18. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-17_r01.zip -d sources/android-17 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 17.1 on all OSes
    19. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-16_r02.zip -d sources/android-16 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 16.2 on all OSes
    20. [all OSes]
      rm -rf sources/android-34 && unzip path/to/sources-15_r02.zip -d sources/android-15 && cd sources/android-34 && mv src/* . && rm -rf src
      extract the package archive as-is from the root SDK directory, to install version 15.2 on all OSes
  3. DONE! :D