在Eclipse里运行,出现错误:
[2009-07-18 06:55:12 - TestProject] Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.

在CMD下
键入:C:\Android1.5_R3\tools>emulator.exe
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd <name>' option. Read -help-avd for more information.

If you *really* want to *NOT* run an AVD, consider using '-data <file>'
to specify a data partition image file (I hope you know what you're doing).

按照提示键入:C:\Android1.5_R3\tools>emulator.exe -help-avd

use '-avd <name>' to start the emulator program with a given Android
Virtual Device (a.k.a. AVD), where <name> must correspond to the name
of one of the existing AVDs available on your host machine.

See -help-virtual-device to learn how to create/list/manage AVDs.

As a special convenience, using '@<name>' is equivalent to using
'-avd <name>'.


按照提示键入:C:\Android1.5_R3\tools>emulator.exe -help-virtual-device

An Android Virtual Device (AVD) models a single virtual
device running the Android platform that has, at least, its own
kernel, system image and data partition.

Only one emulator process can run a given AVD at a time, but
you can create several AVDs and run them concurrently.

You can invoke a given AVD at startup using either '-avd <name>'
or '@<name>', both forms being equivalent. For example, to launch
the AVD named 'foo', type:

emulator @foo

The 'android' helper tool can be used to manage virtual devices.
For example:

android create avd -n <name> -t 1 # creates a new virtual device.
android list avd # list all virtual devices available.

Try 'android --help' for more commands.

Each AVD really corresponds to a content directory which stores
persistent and writable disk images as well as configuration files.
Each AVD must be created against an existing SDK platform or add-on.
For more information on this topic, see -help-sdk-images.

SPECIAL NOTE: in the case where you are *not* using the emulator
with the Android SDK, but with the Android build system, you will
need to define the ANDROID_PRODUCT_OUT variable in your environment.
See -help-build-images for the details.

里面有两行关键命令。

键入:C:\Android1.5_R3\tools>android list avd
Available Android Virtual Devices:
果然没有一个AVD


键入:C:\Android1.5_R3\tools>android create avd -n foo -t 1 开始产生AVD
.......
一顿选项输入后
Created AVD 'foo' based on Android 1.1

??? 产生的AVD是1.1平台上的?? 那如何产生1.5平台上的呢??

再次键入 C:\Android1.5_R3\tools>emulator.exe
报错,提示没有AVD名字

再次键入:C:\Android1.5_R3\tools>emulator.exe -avd foo

久违的画面出现了。 :)


再次在Eclipse里运行工程,还是报错:
[2009-07-18 07:26:37 - TestProject] Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.

在Android 1.5上的AVD 还是没有。所以起不来..

难道在生成AVD的第一个选项:
C:\Android1.5_R3\tools>android create avd -n foo -t 1
Android 1.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]yes
我选择了1.1平台上的??

键入C:\Android1.5_R3\tools>android create avd -h 查看帮助
......
一顿乱试,键入C:\Android1.5_R3\tools>android create avd -n foo2 -t 2
Android 1.5 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Created AVD 'foo2' based on Android 1.5
哈哈,终于产生了1.5平台上的AVD

再次在Eclipse里运行工程,终于可以了. 嘎嘎.

更多相关文章

  1. GitHub 标星 8K+!一款开源替代 ls 的工具你值得拥有!
  2. 安卓开发:TabHost 选项卡的基本用法
  3. Android(安卓)Series: GET, POST and Multipart POST 请求
  4. 属于自己的常见Android选项菜单样式集合
  5. android gridview点击子选项动态改变item背景颜色
  6. webview 播放H5视频问题 黑屏 只有声音没有画面
  7. android studio 工程在android 源码编译
  8. android ubuntu9.10 源码的编译 Eclipse工程 Contacts编译 应用
  9. Windows下Android开发环境 搭建

随机推荐

  1. AppCompatActivity实现全屏
  2. view的绘制机制(一)
  3. App自适应draw9patch不失真背景
  4. android 自定义progressDialog实现
  5. Android(安卓)推送
  6. pinpoint安装与配置
  7. Intent 对象在 Android(安卓)开发中的应
  8. 2.4简单的按钮----Android(安卓)Button
  9. Android(安卓)Transition框架介绍及使用
  10. Android(安卓)JNI输出LOG