问题描述
我的应用程序针对 android API 级别 7 (2.1) 并且在 Eclipse 下都运行良好(生成的 APK 在 2.1 设备上也运行良好).我尝试使用 apache ant 构建应用程序并收到此错误.针对相同问题的所有解决方案都告诉我必须设置另一个目标 API 级别.
My app targeted to the android API level 7 (2.1) and under the Eclipse all work good (resulting APK also works fine on the 2.1 devices). I try to build app with the apache ant and got this error. All of the solutions for the same problems tells me that I must set another target API level.
我想简单地忽略清单中的这个属性 - 正如我发现的,在旧设备中它只是忽略而没有任何错误
I want to simple ignore this attribute in manifest - as I find, in old devices it just ignored without any errors
推荐答案
我认为 API 级别低于 11 的硬件加速是不可能的.点击此处了解更多信息.
I don't think it's possible to have hardware acceleration with API level less than 11. Check here for more info.
最好的办法是简单地从清单中删除硬件加速属性.
Your best bet is to simply remove hardware acceleration attributes from your manifest.
这篇关于使用 apache ant 构建时找不到属性“hardwareAccelerated"的资源标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!