Android SDK 2.3与Eclipse最新版开发环境搭建(一)

一、 背景和准备

1. Android简介

Android是Google于2007年11月5日宣布的基于Linux平台的开源手机操作系统的名称,该平台由操作系统、中间件、用户界面和应用软件组成,号称是首个为移动终端打造的真正开放和完整的移动软件。可以把它简单理解成Linux上套了一个JAVA的壳。

Android 的平台基本上是免费的,虽然有部份原生链接库会要求费用,但大部份是免权利金。Android
的程序可以采用JAVA开发,因为它的虚拟机(Virtual Machine) Dalvik,只是它将JAVA的bytecode
转成自己的格式,回避掉需要付给SUN 有关JAVA 的授权费用。因此,Android 开发环境是需要JDK的。

2. Android 网络资源

Android的网站是:http://www.android.com/,目前还可以登陆,比较悲剧的是:其Partners部分:http://source.android.com/和Developers部分:http://developer.android.com/,大陆地区已经无法访问。

Android的系统要求请参考:http://androidappdocs.appspot.com/sdk/requirements.html

当前最新版本的Android SDK下载器(真正的SDK还是需要另外下载的),小生是无法直接到官网http://developer.android.com/sdk/index.html
下载的,于是另外找了一个地址http://androidappdocs.appspot.com/sdk/index.html,下载链接和说明如下:

Android SDK for Windows
android-sdk_r08-windows.zip
http://dl.google.com/android/android-sdk_r08-windows.zip

installer_r08-windows.exe (Recommended)
http://dl.google.com/android/installer_r08-windows.exe
Android SDK for Mac OS X (intel)
android-sdk_r08-mac_86.zip
http://dl.google.com/android/android-sdk_r08-mac_86.zip
Android SDK for Linux (i386)
android-sdk_r08-linux_86.tgz
http://dl.google.com/android/android-sdk_r08-linux_86.tgz

Here’s an overview of the steps you must follow to set up the
Android SDK:
   1. Prepare your development
computer and ensure it meets the system requirements.
   2. Install the SDK starter
package from the table above. (If you’re on Windows, download the
installer for help with the initial setup.)
   3. Install the ADT Plugin for
Eclipse (if you’ll be developing in Eclipse).
   4. Add Android platforms and
other components to your SDK.
   5. Explore the contents of the
Android SDK (optional).

3. 软件包下载

a. JDK 1.6

下载网址:
http://www.oracle.com/technetwork/java/javase/downloads/index.html

当前最新版本为Java SE 6 Update 23

小生机器上安装的是:jdk1.6.0_21,也一样用,其实只要你是JDK1.5以上就可以了。

b. Android SDK下载器

下载地址上面已经给出了,可以根据你的系统选择不同的安装包。小生是windows 2003
server,因此下载了http://dl.google.com/android/android-sdk_r08-windows.zip,之后直接解压缩即可。

c. Eclipse IDE

Eclipse 3.4 (Ganymede)以后版本均可。小生下载了最新版本的Helios (3.6)

二、 JAVA环境

Windows上配置JAVA环境变量如下:

JAVA_HOME

clip_image002

Path:

clip_image004

欢迎关注我的微信公众号:

 

如无特殊说明,文章均为本站原创,转载请注明出处!

发表回复

您的电子邮箱地址不会被公开。