如何在 windows xp 中安装 Android SDK 和 eclipse?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8635419/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install Android SDK and eclipse in windows xp ?
提问by Bala
I am stuck in between installing Android SDK eclipse in my windows xp sp3 pc. The android SDK is not getting installed in eclipse. What could be the problem? I don't mind uninstalling eclipse and starting the installation again. Is there any step by step guide to do this?
我被困在我的 windows xp sp3 pc 中安装 Android SDK eclipse 之间。android SDK 没有安装在 eclipse 中。可能是什么问题呢?我不介意卸载 eclipse 并重新开始安装。是否有任何分步指南来执行此操作?
回答by Alvin Baena
You should follow the instructions posted in the android page here, there is explained step by step what you should do.
您应该按照此处android 页面中发布的说明进行操作,其中会逐步说明您应该做什么。
I don't think the SDK is OS dependent, so it should be the same for all windows operating systems.
我认为 SDK 不依赖于操作系统,因此对于所有 Windows 操作系统应该是相同的。
回答by Nikhil Dinesh
Setting Up the Environment For Android For Eclipse
为 Eclipse 设置 Android 环境
Download the Android SDK corresponding to the system which you are using
下载您使用的系统对应的Android SDK
For Windows - http://dl.google.com/android/android-sdk_r15-windows.zip
对于 Windows - http://dl.google.com/android/android-sdk_r15-windows.zip
http://dl.google.com/android/installer_r15-windows.exe
For Mac OS - http://dl.google.com/android/android-sdk_r15-macosx.zip
对于 Mac 操作系统 - http://dl.google.com/android/android-sdk_r15-macosx.zip
For Linux - http://dl.google.com/android/android-sdk_r15-linux.tgz
对于 Linux - http://dl.google.com/android/android-sdk_r15-linux.tgz
1) Prepare your development computer and ensure it meets the system requirements.
1) 准备您的开发计算机并确保它满足系统要求。
a) Need to install the JDK, if you don't have it already.(http://java.sun.com/javase/downloads/index.jsp)
b) If you will be developing in Eclipse with the Android Development Tools (ADT) Plugin(http://www.eclipse.org/downloads/)
The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.
2) Install the SDK starter package .
2) 安装 SDK 启动包。
a) If you downloaded a .zip or .tgz package (instead of the SDK installer), unpack it to a safe location on your machine.
By default, the SDK files are unpacked into a directory named android-sdk-<machine-platform>.
b) If you downloaded the Windows installer (.exe file), run it now and it will check whether the proper Java SE Development
Kit(JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).
c) Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later,
when setting up the ADT plugin and when using the SDK tools from the command line.
3) Install the ADT Plugin for Eclipse (if you'll be developing in Eclipse, You can download the ADT plugin from http://developer.android.com/sdk/eclipse-adt.html#installing).
3) 安装 Eclipse 的 ADT 插件(如果您将在 Eclipse 中进行开发,您可以从http://developer.android.com/sdk/eclipse-adt.html#installing下载 ADT 插件 )。
a) Follow these steps to download the ADT plugin and install it in your Eclipse environment.
i) Start Eclipse, then select Help > Install New Software....
ii) Click Add, in the top-right corner.
iii) In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
(If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
iv) In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
v) In the next window, you'll see a list of the tools to be downloaded. Click Next.
vi) Read and accept the license agreements, then click Finish.
b) Configuring the ADT Plugin - the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
i) Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences).
ii) Select Android from the left panel.
iii) For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory. Click Apply, then OK.
4) Add Android platforms and other components to your SDK.
4) 将 Android 平台和其他组件添加到您的 SDK。
a) You can launch the Android SDK and AVD Manager in one of the following ways:
i) From within Eclipse, select Window > Android SDK and AVD Manager.
ii) On Windows, double-click the SDK Manager.exe file at the root of the Android SDK directory.
iii) On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute: android
b) To download components, use the graphical UI of the Android SDK and AVD Manager to browse the SDK repository and select new or
updated components, The Android SDK and AVD Manager installs the selected components in your SDK environment
回答by Sunil Parmar
Its Simple to install sdk
1. download android-sdk_r16-windows.zip from
http://developer.android.com/sdk/index.html
2. extract it and double click on SDK manager.
3. download/install required API packages.
4. download latest AVD go to elipse's Help menu and click on install new software.
5. go for zip file and browse the downloaded AVD .zip file.
6. then go to eclipse's Menu windows/preferences/android
7. select your sdk's location. press ok.
安装sdk 很简单
1. 从
http://developer.android.com/sdk/index.html下载android-sdk_r16-windows.zip
2. 解压并双击SDK manager。
3. 下载/安装所需的 API 包。
4. 下载最新的 AVD 进入 elipse 的帮助菜单并点击安装新软件。
5. 找到 zip 文件并浏览下载的 AVD .zip 文件。
6.然后去eclipse的菜单windows/preferences/android
7.选择你的sdk的位置。按确定。