Android SDK for Offline Installation

Hi there. Long time not see you here :). This time I will talk about Android, a mobile operating system made by Google which is using modified Linux kernel. I knew this thing years ago, but I made Android apps just for fun, which only runnable in the emulator (Android gadget was not available yet at that time). Anyway, lately I get back my curiosity on Android development because of its good prospect (I think) and my brand new Android phone, hoho :). Hopefully in the following month I will publish some free Android apps for all of you :)


Let's get into the main point. If we want to develop Android-based application, at least we need to have:
  1. Android SDK and its components
  2. Eclipse
  3. ADT Plugin for Eclipse
Android Robot

We can download Android SDK at http://developer.android.com/sdk. Google provides Android SDK for 3 platforms: Windows, Mac OSX, and Linux. Just download it and extract the .zip or .tgz. After that, we can read the fine manual and start using AVD manager or "SDK Setup.exe" to perform online installation: download and install its components/packages, such as Android Platform, documentation, Google API, etc.

Anyway, if we want to perform offline installation, we need to download it components manually. Actually, Google doesn't provide any hard link for those, but we can use folder http://dl-ssl.google.com/android/repository/ and file http://dl-ssl.google.com/android/repository/repository.xml for reference. So, here it is a list of download link for some Android SDK components (for other version of API, check the xml file above).

After that, we just need to extract those components in the correct folders. See the following structure (for example, if you extract the SDK in the C:\android)
android/
|-- add-ons/
    |-- google_apis-8_r02/
        |-- docs/
        |-- images/
        |-- libs/
        |-- samples/
|-- docs/
|-- platforms/
    |-- android-2.2_r02-windows/
        |-- data/
        |-- images/
        |-- skins/
        |-- templates/
        |-- tools/
        |-- android.jar
|-- samples
|-- tools
|-- usb_driver
    |-- amd64
    |-- i386
|-- SDK Setup.exe
Next, download the ADT Plugin for Eclipse manually (for offline installation) from http://dl.google.com/android/ADT-0.9.7.zip (for version 0.9.7) and read the fine manual how to use it in Eclipse. In the end, take a look at HelloWorld application to see if your installation works perfectly. Happy coding! ;)

17 comments :

  1. Jadi HP lo apa Gri? :D
    Btw dah nyobain Android App Inventor juga?

    ReplyDelete
  2. hp samsung. udah coba app inventor.

    ReplyDelete
  3. e online install's DLM was terribly slow

    ReplyDelete
  4. Very useful tip! Thanks

    ReplyDelete
  5. Thanks ANGGRIAWAN SUGIANTO
    Actually m new to the android development.

    Would really appreciate your help in guiding me to explore Android to the fullest.

    My email id is karamchandani.amish@gmail.com
    Thanks again

    ReplyDelete
  6. makasih kak anggri untuk tutorial-nya... :p

    itu yg manual emang berasa lama nih di pc... entah lah kok bisa dibilang cepet... hahaha... #sabar

    ReplyDelete
  7. hahaha.. kalau ternyata di versi terbaru perlu ada perubahan step-step di atas, kasi tau ya chock :p

    ReplyDelete
  8. salam kenal dari seorang newbie yg lagi belajar... thaxs infonya..

    ReplyDelete
  9. Here's an article on how to do offline installation on Windows.
    http://siddharthbarman.com/apd
    http://siddharthbarman.com/blog/apd

    ReplyDelete
  10. Bless you....Searched the whole internet for this...Excellent,had to install all manually,To think I almost gave up

    ReplyDelete
  11. Spencer LittlewoodJuly 30, 2012 at 10:18 PM

    Yes bless you indeed, although just before i used your solution i also trtied switch off zone alarm and avast antivirus and i managed to get it down (switching off the force https option too)

    ReplyDelete
  12. mas, saya masih kesulitan nih, untuk install offlinenya, mohhon di beritahu di letakkan dimana derektori penyimpanan komponen android yg di download offline

    ReplyDelete
  13. Just when I gave up I cross this info, life saver!

    ReplyDelete
  14. Android SDK Platform 4.0.3

    All Platforms



    Android SDK Platform 4.0

    All Platforms



    Android SDK Platform 3.2 revision 1

    All Platforms



    Android SDK Platform 3.1 revision 3

    All Platforms



    Android SDK Platform 3.0, revision 2

    All Platforms



    Android SDK Platform 2.3.3_r2

    All Platforms



    Android SDK Platform 2.3.1_r2

    All Platforms



    Android SDK Platform 2.2_r3

    All Platforms

    ReplyDelete
  15. ou can find the pdf's for most sections here The website has been split into sections for each book.

    http://www.docand.com/
    Design ....................... http://docand.com/android-design-methods-book/
    Training...................... http://docand.com/training-in-android-book/
    Android Components............ http://docand.com/a-guide-to-android-api-components-book/
    Google Services............... http://docand.com/android-google-available-services-book/ Distribution Methods........... http://docand.com/android-distribution-methods-book/
    Tools of the Android Developer http://docand.com/tools-of-the-android-developer-book/
    The sections are all available as a preview and as a download for free.

    ReplyDelete