Chinaunix首页 | 论坛 | 博客
  • 博客访问: 60998244
  • 博文数量: 173
  • 博客积分: 10400
  • 博客等级: 上将
  • 技术积分: 5973
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-03 22:08
文章分类

全部博文(173)

文章存档

2013年(2)

2012年(1)

2011年(17)

2010年(28)

2009年(76)

2008年(49)

分类: LINUX

2012-03-02 16:14:51

Step by Step Guide on How to Install Android SDK Offline (not completely offline)By Haydendo


This guide is for Android developers who are for some reason unable to install Android SDK by following the instruction provided in the official Android Developer page.  Mine is because of my company’s proxy that block this kind of installation.

It's for Eclipse IDE on Windows box only.  We’ll collect first or download all the necessary files and then glue them together.  I’ll provide and try to update the links here from time to time.

 Required Files:

  • Java Development Kit (JDK)  Download
  • Eclipse - Eclipse 3.6.1 or Helios is the version I'm using.  Download
  • Android Development Tools (ADT) Plugin - custom plugin so we can build Android applications using Eclipse IDE.  Download
  • Android SDK Starter Package - includes the core SDK Tools.  Download
  • Android SDK Tools, revision 10 - the complete tools component of the SDK. Download
  • Android SDK Platform-tools, revision 3 - platform tools component of the SDK. Download
  • Android SDK Platform - our target Android OS.

Android SDK Platform:

STEPS:

  1. Install the JDK using the default setup.
  2. On you Android developer folder (ex. C:\Developers\Android\) place all the zip files you just downloaded.
  3. Create a workspace folder on your home folder (ex.C:\Developers\Android\workspace).
  4. Unzip the Android SDK Starter Package (android-sdk_r10-windows.zip).  NOTE: I suggest to use WinRAR so we can just right-click the zip file and then choose Extract Here
  5. We now have the android-sdk-windows folder on our android developer folder.  Inside this folder, delete the tools folder.  Move the Android SDK Tools (tools_r10-windows.zip) and Android SDK Platform-tools (platform-tools_r03-windows.zip) zip files to this folder.  Unzip them and rename as tools and platform-tools respectively.
  6. Inside android-sdk-windows folder there’s a platforms folder.  Move and unzip the Android SDK Platform file (android-2.3.3_r01-linux.zip) on this folder.
  7. Inside android-sdk-windows folder, create samples folder.  Move and unzip the Android SDK Samples zip file (samples-2.3.3_r01-linux.zip) to this folder.
  8. Unzip the Eclipse file (eclipse-SDK-3.6.1-win32-x86_64.zip).
  9. Inside eclipse folder, run eclipse.exe.  It will ask for the workspace folder to use.  Choose the workspace folder you created.  You can optionally check the Use this as the default and do not ask again checkbox and then click OK.
  10. Still on Eclipse, select Help > Install New Software.... Click Add, in the top-right corner and then click Archive…  Browse and select the downloaded ADT zip file (ADT-10.0.0.zip).  Enter a name for this update site (ex. ADT Plugin) in the Name field and then click OK.
  11. Check the Developer Tools checkbox or click the Select All button and then clickNext button and then accept the defaults.  (Sorry, you need to be online as some component need to be downloaded at this part.  I’ll update it once I know how to do the offline mode of it).  After the installation, Eclipse should be restarted.
  12. On Eclipse, select Window > Preferences.  Select Android on the left pane.  On SDK location, browse the select the Android SDK folder (android-sdk-windows) then clickApply.
  13. Still on Eclipse, select Windows Android SDK and AVD Manager.  Click theInstalled Packages on the left pane and you will notice, there's SDK Platform Android 2.3.3, API 10, revision 1 and Samples for SDK API 10, revision 1.  We are now ready to create virtual devices.
  14. Click Virtual Devices on the left pane.  Click New… button and give the virtual device a name (ex. Gingerbread).  Select Android 2.3.3 API Level 10.  Type 512 or more for SD Card size and then click Create AVD button.  We are now ready to create our famous "Hello World" application
    .
-----------------

just for training propose.
阅读(1422) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~