ERROR:Application requires API version 12.Device API version is 11 (Android 3.0).

这是 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的版本号)就可以解决问题了


注:本文参考:  http://blog.csdn.net/zlp5201/article/details/6562010

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值