Android 1.6+Eclipse3.5+ADT 0.9.3 安装

来源:互联网 发布:杭州银泰百货软件 编辑:程序博客网 时间:2024/04/28 19:48

      想不到小小的android(指的是安装是简单的,不是说android简单呀。。呵呵)开发平台的安装也会遇到那么多困难。

      首先是www.develop.android.com目前为止还是无法访问,无奈呀,官方的下载与官方的安装说明都无法获得,为安装android增加了不少困难。但网络还是强大的,搜索了一下,找到了这个地址: http://androidappdocs.appspot.com/ ,不知道跟GOOGLE是什么关系,但看起来也是挺官方的网站。

      1、首先先去看一下安装说明:

      http://androidappdocs.appspot.com/sdk/1.6_r1/installing.html

      2、下载android sdk

      http://androidappdocs.appspot.com/sdk/1.6_r1/index.html

      3、安装eclipse

      http://www.eclipse.org/downloads/

      我下载的是eclipse j2ee版本的,具体的地址见下面,3.5版本

      http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-jee-galileo-SR1-win32.zip

     4、安装adt for eclipse

      使用eclipse的update方式无法安装,提示是缺少依赖的其他安装包(具体是什么依赖包,我也懒得写了,因为我找到了其他解决方式,所以安装错误信息我也不打算写出来了,对安装过程没有用),无奈呀。

      根据eclipse的错误提示找了许多资料,有说需要什么emf啦等等的方案,结果去安装emf的时候又提示需要其他依赖包,崩溃了,仿佛陷入无限循环依赖,何时是个尽头。

      在线安装这种方式不行,那换一种方式,不是可以直接下载adt安装到eclipse里面吗。然后又上网找adt最新的0.9.3版本,结果找到了一个地址 http://dl-ssl.google.com/android/ADT-0.3.3.zip  呵呵,是0.3.3的。合理的Google是不是应该很合理的把0.9.3放在http://dl-ssl.google.com/android/ADT-0.9.3.zip 这个地址呢,所以我把0.3.3改成0.9.3就得到了0.9.3的下载地址。

     

       回到eclipse ---  help ----  Install new software --- add  ---Archive,选择ADT-0.9.3.zip,然后就可以正确安装了。

      

       (看到这篇文章的朋友,要看图文并茂的话,真的是非常不好意思,因为安装过程没有抓图,这篇文章也是安装成功之后为了方便自己以后重新安装而记录下来的,我只能尽量用文字详细描述,望请尽量体谅) 

     

       5、配置。

       配置就非常简单了,大家按照上面第1点提供的链接地址,按照安装说明依样画葫芦就可以了。

       大概步骤如下(windows平台):

      (1)在环境变量的"系统变量"的Path里加上android的tools的目录。

     

       On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.

      (2)在eclipse里配置sdk目录
      

       Now modify your Eclipse preferences to point to the Android SDK directory:

  1. Select Window > Preferences... to open the Preferences panel (Mac: Eclipse > Preferences).
  2. Select Android from the left panel.
  3. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
  4. Click Apply, then OK.  

        6、恭喜,大功告成。

 

 

      后记:

      其实在第1点的安装说明的官方地址那已经写得很详细,安装前请先仔细阅读,我就是当初没有点开安装前的注意事项链接,才导致白费力气,做了很多无用功,所以才有上面的6点,其实安装部分都是多余的。

      支持的eclipse平台与版本:对eclipse3.3与3.3以下的是不确定是否支持的,而且对eclipse推荐使用Recommended Eclipse IDE packages: Eclipse IDE for Java EE Developers, Eclipse IDE for Java Developers, Eclipse for RCP/Plug-in Developers,而不支持 Eclipse Classic IDE package is not supported

http://androidappdocs.appspot.com/sdk/1.6_r1/requirements.html

 

Supported Development Environments

  • Eclipse IDE
    • Eclipse 3.4 (Ganymede) or 3.5 (Galileo)
      • Note: Eclipse 3.3 has not been fully tested with ADT 0.9.3 and support can no longer be guaranteed. We suggest you upgrade to Eclipse 3.4 or 3.5.
      • Recommended Eclipse IDE packages: Eclipse IDE for Java EE Developers, Eclipse IDE for Java Developers, Eclipse for RCP/Plug-in Developers
      • Eclipse JDT plugin (included in most Eclipse IDE packages)
      • Eclipse Classic IDE package is not supported.
    • JDK 5 or JDK 6 (JRE alone is not sufficient)
    • Android Development Tools plugin (optional)
    • Not compatible with Gnu Compiler for Java (gcj)
  • Other development environments or IDEs
    • JDK 5 or JDK 6 (JRE alone is not sufficient)
    • Apache Ant 1.6.5 or later for Linux and Mac, 1.7 or later for Windows
    • Not compatible with Gnu Compiler for Java (gcj)

Note: If JDK is already installed on your development computer, please take a moment to make sure that it meets the version requirements listed above. In particular, note that some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development