这是 Eclipse 下单击 Run 之后出现的错误,把所有菜单都翻过了一遍也没找出问题所在,google了一下,总算是找到了病因
错误代码:
[2011-10-12 13:59:58 - dialog] ------------------------------
[2011-10-12 13:59:58 - dialog] Android Launch!
[2011-10-12 13:59:58 - dialog] adb is running normally.
[2011-10-12 13:59:58 - dialog] Performing ui.client.DialogActivity activity launch
[2011-10-12 13:59:58 - dialog] Automatic Target Mode: Preferred AVD 'Android' is available on emulator 'emulator-5556'
[2011-10-12 13:59:58 - dialog] ERROR: Application requires API version 12. Device API version is 11 (Android 3.0).
[2011-10-12 13:59:58 - dialog] Launch canceled!
解决办法:
找到 AndroidManifest.xml 文件,应该会有这么一句代码:<uses-sdk android:minSdkVersion="12" />
12就是传说中的版本号了,改成11(Device API version的版本号)就可以解决问题了