No resource identifier found for attribute 'ha

2019-04-28 01:57发布

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

2条回答
霸刀☆藐视天下
2楼-- · 2019-04-28 02:28

I declared

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

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

查看更多
smile是对你的礼貌
3楼-- · 2019-04-28 02:30

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.

查看更多
登录 后发表回答