android

一、安装步骤如下:


    1.在线安装


        1).打开Eclipse,Help ->Install New Software... ->选择Work with:后的Add...。
         2).在Name选项输入Android Plugin在Location输入http://dl-ssl.google.com/Android/eclipse/,             点击OK,然后在下面勾选Name中的选项即可。


    2.离线安装


        1).打开Eclipse,Help ->Install New Software... ->选择Work with:后的Add...。
       2).在Local选项中输入Android Plugin,在Archive中找到ADT0.9.1的压缩包,点击OK,然后在下      面勾选Name中的选项即可。


    二、安装是否成功测试:


        1).安装完ADT插件后,关闭Eclipse,然后重启。
        2).打开File ->New,看有无出现Android Project选项,没出现先别着急,再点击Other...选项      ,看看General选项下是否有Android选项,有,则安装成功,无,则安装失败。

安装完插件后,需要做一些简单的配置:
1、在Eclipse中,选择Window > Preference;
2、从左侧的菜单中,选择Android项;
3、设置SDK Location,点Browse选择SDK的安装根目录;
4、OK,完成。

    三、下载地址连接:


        1).Eclipse Galileo版本IDE下载:http://www.eclipse.org/downloads/
       2).ADT-0.9.1.zip下载:http://dl-ssl.google.com/android/ADT-0.9.1.zip
        3).Android SDK1.5下载:http://developer.android.com/intl/zh-CN/sdk/1.5_r2/index.html

四、创建AVD

方法1

运行-CMD-键入android list targets,会出现已有的SDK列表,targetid为2表示android 1.5版本

注意,如果不出现列表,在环境变量里path中加上android-sdk-windows-1.6_r1\tools的地址,如PATH = D:\android-sdk-windows-1.6_r1\tools。。。。。。。

然后,cmd-->输入 android create avd --name sdk_1_5_version --target 2

出现:

Android 1.5 is a basic Android platform.

Do you wish to create a custom hardware profile [no]

Created AVD 'sdk_1_5_version' based on Android 1.5

设置属性:

Android 1.5 is a basic Android platform.
Do you wish to create a custom hardware profile [no]yes

Device ram size: The amount of physical RAM on the device, in megabytes.
hw.ramSize [96]:128

Touch-screen support: Whether there is a touch screen or not on the device.
hw.touchScreen [yes]:yes

Track-ball support: Whether there is a trackball on the device.
hw.trackBall [yes]:yes

Keyboard support: Whether the device has a QWERTY keyboard.
hw.keyboard [yes]:yes

DPad support: Whether the device has DPad keys
hw.dPad [yes]:yes

GSM modem support: Whether there is a GSM modem in the device.
hw.gsmModem [yes]:yes

Camera support: Whether the device has a camera.
hw.camera [no]:

Camera support: Whether the device has a camera.
hw.camera [no]:yes

Maximum horizontal camera pixels
hw.camera.maxHorizontalPixels [640]:854

Maximum vertical camera pixels
hw.camera.maxVerticalPixels [480]:480

GPS support: Whether there is a GPS in the device.
hw.gps [yes]:yes

Battery support: Whether the device can run on a battery.
hw.battery [yes]:yes

Accelerometer: Whether there is an accelerometer in the device.
hw.accelerometer [yes]:yes

Audio recording support: Whether the device can record audio
hw.audioInput [yes]:yes

Audio playback support: Whether the device can play audio
hw.audioOutput [yes]:yes

SD Card support: Whether the device supports insertion/removal of virtual SD Cards.
hw.sdCard [yes]:yes

Cache partition support: Whether we use a /cache partition on the device.
disk.cachePartition [yes]:yes

Cache partition size
disk.cachePartition.size [66MB]:100MB

4,运行
emulator @sdk_1_5_version -show-kernel

方法2
1,设置环境变量:
ANDROID_SDK_HOME = D:(它会自动创建一个.android文件夹)
PATH = D:\android-sdk-windows-1.6_r1\tools

2,创建
android create avd -n my_avd -t 1 -p D:\avd

3,选择属性
属性设置同方法一


4,运行
emulator @my_avd -show-kernel
这样就创建了一个自定义的AVD,然后,只要在Eclipse的Run Configurations里面指定一个,即在Target下选中自己定义的AVD,即SDK_1_5_version就可以运行了。

你可能感兴趣的:(eclipse,android,windows,cache,Google)