[原创]eclipse下 Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.

[2009-04-29 15:06:25 - HelloWorld] ------------------------------
[2009-04-29 15:06:25 - HelloWorld] Android Launch!
[2009-04-29 15:06:25 - HelloWorld] adb is running normally.
[2009-04-29 15:06:25 - HelloWorld] Performing com.yuankai.android.study.HelloAndroid activity launch
[2009-04-29 15:06:25 - HelloWorld] Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.

网上找了老久,原因没有创建Android Virtual Device,解决方法是在DOS界面下运行D:\Android SDK\android-sdk-windows-1.5_r1\tools 目录[注:Android SDK安装目录]中android .bat工具,指令是:android create avd --name android15r1 --target 2 (其中“android15r1”自己指定一个别的名字也可以),

 

谷歌上原文是:

Create a new AVD using your selected Deployment Target. Execute:

android create avd --name <your_avd_name> --target <targetID>

 

D:\Android SDK\android-sdk-windows-1.5_r1\tools>android list
Available Android targets:
id: 1
     Name: Android 1.1
     Type: Platform
     API level: 2
     Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 2
     Name: Android 1.5
     Type: Platform
     API level: 3
     Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 3
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Description: Android + Google APIs
     Based on Android 1.5 (API level 3)
     Libraries:
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P
Available Android Virtual Devices:

D:\Android SDK\android-sdk-windows-1.5_r1\tools>android create avd --name a
id15r1 --target 2

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

......

.......


Created AVD 'android15r1' based on Android 1.5

D:\Android SDK\android-sdk-windows-1.5_r1\tools>

 

 

这样就创建了一个自己定义的avd(Android Virtual Device),然后在之后就只要在Eclipse的Run Configurations里面指定一个AVD即在Target下选中我们自己定义的这个AVD即android15r1就可以运行了.

这样应该就解决eclipse编译工程时会出错(Failed to find a AVD compatible with target 'Android 1.5'. Launch aborted.)问题啦。不知道上面我说的是否有错,不过大家可以借鉴一下。