Eclipse運行工程報AVD沒有找到錯誤解決過程

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 [email=]'@<name>'[/email] 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 [email=]'@<name>'[/email], 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裏運行工程,終於可以了. 嘎嘎.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章