如何在windows xp中安装Android SDK和eclipse?

时间:2011-12-26 11:45:55

标签: android eclipse sdk

我在我的windows xp sp3 pc中安装Android SDK eclipse之间陷入困境。 Android SDK没有安装在eclipse中。可能是什么问题呢?我不介意卸载eclipse并重新开始安装。有没有一步一步指导这样做?

3 个答案:

答案 0 :(得分:3)

您应该按照Android页面here中发布的说明进行操作,逐步说明您应该做什么。

我认为SDK不依赖于操作系统,因此对于所有Windows操作系统都应该是相同的。

答案 1 :(得分:3)

为Android for Eclipse设置环境

下载与您正在使用的系统相对应的Android SDK

对于Windows - http://dl.google.com/android/android-sdk_r15-windows.zip

           http://dl.google.com/android/installer_r15-windows.exe

对于Mac OS - http://dl.google.com/android/android-sdk_r15-macosx.zip

对于Linux - http://dl.google.com/android/android-sdk_r15-linux.tgz

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)安装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)安装Eclipse的ADT插件(如果你将在Eclipse中开发,你可以从下载ADT插件           http://developer.android.com/sdk/eclipse-adt.html#installing)。

   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)将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

答案 2 :(得分:1)

简单安装sdk
1.从中下载android-sdk_r16-windows.zip http://developer.android.com/sdk/index.html
2.解压缩并双击SDK管理器。
3.下载/安装所需的API包。
4.下载最新的AVD转到elipse的帮助菜单,然后单击安装新软件 5.转到zip文件并浏览下载的AVD .zip文件 6.然后去eclipse的菜单windows / preferences / android
7.选择你的sdk的位置。按好。