No resource identifier found for attribute 'hardwareAccelerated' when building with apache ant

佐手、 提交于 2020-01-02 03:44:07

问题


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


回答1:


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.




回答2:


I declared

   <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="21" />

in manifest file. It resolved my problem. Hope it help others.



来源:https://stackoverflow.com/questions/12619974/no-resource-identifier-found-for-attribute-hardwareaccelerated-when-building-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!