How to install Android SDK without internet connection

   Posted by Lê Hoàng in Android

Android SDK is a great development kit for developer to create applications for Android platform. To use it, you have to download the Adroid SDK manager. The SDK manager let you download the rest of SDK components (which will require internet connection). So how can you install Android SDK on computers that have no internet connection? This step by step guide will help you.

Important: All files must be downloaded first before we install it on a computer without internet connection. This works well in deployment environments where all files would be downloaded to one storage device and then moved to be installed on computers without internet connections.

1. Download the SDK manager. We won’t use it to download any components. We need it to lauch the emulator later.

2. Lauch your browser and go to http://dl-ssl.google.com/android/repository/repository.xml

3. Quicky find the android platform that you want to download by pressing Ctrl+F ( In FireFox), we want to find the latest Android platform 2.2 so we typed in: 2.2
Other available platforms: 2.1, 1.6 and 1.5

As you can see from the picture below, we have zip files for Linux, Mac osx and Windows. Highlight the part: android-2.2_r02-windows/linux/macosx.zip and copy it.

Note: We can use this trick to download future Android platform ( 2.3, 3.0….)

4. Paste what you have copied right after http://dl-ssl.google.com/android/repository/ and we will have the direct link to download the Android 2.2

5. After you download these two files mentioned above (the SDK manager and the zip file), you can install the Android SDK on your computer without internet connection.

6. Extract android-sdk_r06-windows.zip and android-2.2_r02-windows.zip.

7. Copy or cut all files inside android-2.2_r02-windows folder.

8. Go to …\android-sdk_r06-windows\android-sdk-windows\platforms and creat a new folder (You can name it anything you want, we named it android 2.2)

9. Paste all your copied/cut files to that folder (in this post is: android 2.2)

10. Lauch ….\android-sdk_r06-windows\android-sdk-windows\SDK Setup.exe

11. The SDK and AVD Manager will autodetect the SDK Platform.

12. Go to Virtual Devices and click on New to create a new android virtual device.

13. A new window will pop up, you can name your device, choose target, set size for SD card, choose skin. Click on Creat AVD to create your device.

14. Click on Start to lauch your virtual device.

 

About Lê Hoàng

When not creating exciting new Android games, Lê Hoàng is here crafting tutorials, tweaks, and fixes for your enjoyment.
View more articles by Lê Hoàng

The Conversation

Follow the reactions below and share your own thoughts.

  • Jhonemoore

    Very good. very useful. Thanks

    • Anonymous

      Glad you like the post ;)

      • kero

        help me please.. my phone is soft brick.. and i dont have recovery mode anymore.. what can i do?
        >

    • anand

      i got dl_ssl.xml file is missing

      please help me

  • B Chandrasaimohan

    Super And Very useful
    Thaks

    • Anonymous

      Thank you! ^^
      Glad to hear your feedback :d

  • Nasereldeen_1

    Thanks ..

  • http://twitter.com/varunbhatbm varun bhat

    Thanks a lot :)

  • B Chandrasaimohan

    Hi, I am trying to include Googlemaps API . I downloaded from this site n followed steps as given. but the sdk is not recognising the google maps API. Can u suggest me any idea?

    • Anonymous

      what are you talking about? This guide is for android sdk not google maps.
      Anyway, can you give me screenshots? :) I think i can help

      • http://www.facebook.com/alen.siljak Alen Siljak

        One of the components to install as a part of SDK is Google APIs, including Google Maps. They can be installed by following these same instructions and applying some reasoning to it. :)
        i.e. http://dl-ssl.google.com/android/repository/google_apis-8_r02.zip

        • Anonymous

          Oh i see! Thank you :D

  • Maheshbinny

    is this procedure requires eclipse installation

    • Anonymous

      No. Just follow the guide and you will get the SDK running :)

  • Dtybel

    Muito bom perfeito, justo o que procurava. Just I what find for…thank you!

  • Riod

    Dude, this post is the best! Just what I was looking for. Thanks so much

    • Anonymous

      You are welcome :D Glad i could help ;)

  • Emdad

    Thanks a lot. Good job.

  • Sathyanmarx

    You are awesome..I couldn’t access the website because of firewall restriction in office..finally this website helped me..Thanks a lot

  • Bsod

    I couldn’t download using the SDK manager as I’m in a corporate environment that is locked down to one browser (guess which…). I was able to get the android emulator up and running with no problems using the above instructions, thanks heaps!

    • Anonymous

      You are welcome! :D

  • Seema

    Very good post after a long search some good working stuff.Thank you so much ;)

  • http://twitter.com/4SN Senthil Nathan

    Thanks a ton. It helped me big time!! :-)

  • http://twitter.com/4SN Senthil Nathan

    Good pst. Thanks a ton

  • Anand Sunny 7

    Plz Let Me Know How Install Sample For Platform 2.1 Thanks In Advance

    • Anonymous

      Can i know the link to these samples?

      Thanks

  • Anand Sunny 7

    And Let Me Know Where To Save Sample Folder Content

  • Raman_raja

    I want to use Eclipse for my Android development. I am behind a firewall that prevents Internet connection. How can I install Android zip files and make them work with Eclipse ?
    Thanks,
    Raja

  • wiki

    thanks very good from Algeria

  • Nemoclown

    Thank you very much

  • Sandra

    It still works! (March 15.)

    Thank you very much indeed! :-)

    • Sandra

      I’ve to add following information

      In some cases you ought to set the ANDROID_SDK_HOME environment variable before you start your new AVD. e.g.

      set ANDROID_SDK_HOME=D:

      if your .android folder is created on the drive D:

      HTH

  • Dentbagoest

    waw…. nice…
    thank very much…. :)
    i`ll try…..

  • http://www.facebook.com/ChrisLE2011 Chris Le

    Very nice, works fine when you wanna make a virtual device to see anything. But if you wanna develop Android Apps with Netbeans like me, you have to download over the Android SDK Manager, cause the Plugin for netbeans find the versions and other thins but they doesnt make any platform. Know I dont know whether it is a bug in the plugin or by the coping, you have forgotten anything in an other Folder.

    Regards

    Chris

  • Anonymous

    Great tips for us. Thanks

  • Anonymous

    Great tips for us. Thanks

  • Oleg

     Thanks a lot, this is realy useful for me!!!

  • NikoK

    Very helpful, though every time I load my AVD, it sits there saying “(Not Responding)” for the longest time, then when it starts responding, all I get is animated ‘android’ text and no button pushing or anything else does anything. :( Did I miss some vastly important step or something? *is very new to this*

    • Anonymous

      The Android SDK is very slow (even on quad core CPU). From what you described, the android text is just a boot screen (which is normal), just wait until it is loaded.

      It seems like your hardware is a problem too. Usually, it takes 1 min for everything to be completely loaded.

  • http://www.facebook.com/denisaurio Denis Pizarro

    una consulta, cuando hago funcionar el android sdk m funciona muy bien la interfas,todo menos internet, me podian decir como configurarlo para que el emulador me lo tome.desde ya gracias

  • Melody

    I love u!!! God bless u!!!

  • Umi

    Very usefull tutorial! Thanks a lot! =) It helps me!

  • Ced Pascal

    Thanks !

  • Koarng Kao

    Thanks a lots, it works well.

  • Sethathi

    Thanks a lot. :)

  • Vito

    Thanks for the great post, this helped me revert my eclipse away from the detrimental r14 update.

  • Athlass
  • Abubakkar

    Will it work for windows 7 as there is no android 2.2 for windows its only shows linux?

  • Anonymous

    Great!, thanks a lot for the intructions. The Andorid SDK was just giving connection reset every time i tried to download an SDK.

    Just 1 question. I have been able to install andoird 2.3.3 SDK, but i’m having trouble to install andoird 4.0.3, the reason is that the SDK-platform and the emulator images are diferent files. I have downloaded both and make a similar instalacion to android2.3.3, but the emulator doesn`t boot.

    Any suggestions?

  • Saju

    Great!, thanks a lot for the intructions

  • Afsal

    Thank you sir,

    Great posting..Very informative.

  • Bhathiya Perera

    thanks man you are a life saver
    now me and my friends with 512Kbps can actually download this

  • Bhathiya Perera

    when i try this , xml file doesn’t has the zip files i need it just contain the names of tools platform-tools_r09-*os*.zip and tools_r15-*os*.zip
    but when i try the example name you have given in your tute (dl-ssl.google.com/android/repository/android-2.2_r02-windows.zip) it works
    android-2.2_r02-windows.zip is not in the xml !
    so could you please give us the names of the zip files
    thanks sir

  • Rameshwar Soni

    I opening the URL mentioned in step 2 i do not get the same type of xml file (i.e. the image which you have shown in step 3).

  • sisila

    very very useful thank you…………………………!

  • bennycah

    To those having problem finding the SDK in the repository, you can refer the repository XML shown when the SDK trying to fetch the files.
    Now the repository.xml location is: https://dl-ssl.google.com/android/repository/repository-6.xml

    As of now, the SDK Platform that can be downloaded: 1.1_r1, 1.5_r3, 1.6_r2, 2.0, revision 1, 2.0.1_r1, 2.1_r3, 2.2_r3, 2.3.1_r2, 2.3.3._r2, 3.0, revision 2, 3.1, revision 3, 3.2, revision 1, 4.0, 4.0.3, 4.0, 4.0.3, 4.0.4

    In the future, it may be changed by increasing the digit e.g repository-7.xml, repository-8.xml, and so on.

  • Ripon

    Really very helpful for a endroid beginner. Thank you.

  • Ana

    Hi Guys
    I have just started using eclipse for android …but have a problem in setting up the sdk manager. There are no packages in the sdk manager and when I try to set up the skd location in eclipse in says it does not recognise the location or when I try to add the android adt plugin in eclipse I get this error “Unable to connect to repository”
    I cannot connect to the internet through eclipe which I think may be one of the causes, but do not know why I cannot connect to the internet I do not have firewall turned on I have checked all the proxys and my internet works perfectly outside eclipse.

    Please help me I am really exited about doing some Android programming and have tried to solve this problem for the past 5 days with no success.

    Thanks

  • carlos

    Muchisimas gracias, me has salvado!!!

    saludos

  • kishor

    really it,s very nice document to teach andriod technology

  • alex

    Your web page is a life saver! I needed an older API and SDK Manager wouldn’t show it. Thanks to you I was able to download it!

    Have a great one!

  • anand

    with this i got dl.ssl.xml missing error

    please help me

  • anita

    this works for sdk 4.1 too.thanks!!

  • punit

    hi iam downloaded with android sdk all avd i want to use them for another computer is it possible to copy folder from one computer and pasting to other machine because in other machine i dont have net connection please understand my problem and provide me solution

    • Lê Hoàng

      > Hello, this tutorial helps you do exactly that. Just follow the steps carefully and you will be able to use the emulator on the other computer.

  • Del Dalton

    Hi there,

    I’m having a few issues with retrieving the Android platforms from the repository. I can navigate to http://dl-ssl.google.com/android/repository/repository.xml but I’m only able to locate the following archives.

    – platform-tools_r09-windows.zip
    – tools_r15-windows.zip

    I cannot even find the Android 2.2 platform that you have used in your tutorial. If I copy your URL in to my browser it does download the .zip file for that platform. However, I would like to download multiple Android platforms but cannot find the required URLs.

    Am I doing something wrong?

  • Hiran

    bro, there is no android 2.2, only have
    – platform-tools_r09-windows.zip
    – tools_r15-windows.zip

    help please :(

  • Tech Blogging

    But after the installation android SDK, we can use it normally? What to do if any problem occurs during installation or after the installation?

  • Delvon

    Thanks a whole lot!!! This has helped me soooo much. I have been trying to get this up for weeks!!!

  • yogen

    avd manager not working . please help

  • yogen

    Avd manager not working please help.

  • selvin

    Great work , struggling a lot for months … thanks ……..

  • Abdulmusawwir

    Aweome man!
    You rock!
    :D

  • patrick
  • patrick

    finally if you create a new Android project with eclipse you still need android-extras (last point in adroid sdk). . do you know where i can download it ?

  • saurabh

    thanks a lot…very useful…..

  • Mahipalsinh

    Thank you 1

  • John

    Thank you so much for this!!! I’ve wasted a few days trying to figure this out (unsuccessfully) and here you have it all explained so well!

    I also need to install the Google USB driver (the generic Android one from Google, not a device specific one from an OEM), but can’t find it listed in either https://dl-ssl.google.com/android/repository/repository-7.xml or https://dl-ssl.google.com/android/repository/addons_list-2.xml (the other link that is mentioned by the SKD Manager Log). Do you know how to figure out where to download it from? Also, do you know where to put the download to install to SKD?

    Thanks!

  • Gordon

    ok wtf when i search 4.2 nothing shows up

  • mk

    Thank u for the post. But I got an Error when creating avd. It says “Unable to find a ‘userdata.img’ file for ABI armeabi to copy into the AVD folder”. Please help…..

  • kamenest

    very good…
    but the updated link is : http://dl-ssl.google.com/android/repository/repository-8.xml

  • daniel

    thank you very much! it’s that i want.

  • nemo

    excuse me, I use this links for to take the SDK http://dl-ssl.google.com/android/repository/repository.xml and your http://dl-ssl.google.com/android/repository/repository.xml but I can’t see where ou can find the link android-2.2_r02-windows.zip , I see only android-2.2_r03-linux.zip,
    help me and and I speek little english

  • bin

    on creating nu project the package named appcompat_v7 will automatically create….?????????????

  • sanjay

    i didn’t understood from 10th step pls explain clearly

  • Lê Hoàng

    > You have to launch the SDK setup.exe file inside the android-sdk-windows folder or the custom folder you use to install the Android emulator.

    Hope this helps!

  • Sujit Yadav

    > Thanks a lot..you dont know what you have done fir me..Thanks mate :-) love you :-*