没有资源的ident ifier在包'机器人'发现属性“widgetCategory” [英] No resource ident ifier found for attribute 'widgetCategory' in package 'android'

查看:188
本文介绍了没有资源的ident ifier在包'机器人'发现属性“widgetCategory”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

widgetCategory是在Android 4.2 SDK 17级加我反编译的APK apktool,增加了widgetCategory属性到一个XML文件,并重新编译。

widgetCategory was added in Android 4.2 SDK level 17. I decompiled an APK with apktool, added the widgetCategory attribute to a xml file, and recompiled.

错误是这样的:

No resource identifier found for attribute 'widgetCategory' in package 'android'

我曾尝试使用最新的AAPT和改变SDK水平apktool.yml但既不解决了这个问题。

I have tried using the latest aapt and changing the sdk level in apktool.yml but neither solved the problem.

请问有什么需要改变添加于Android 4.2支持apktool?

Is there anything I need to change to add support for Android 4.2 to apktool?

推荐答案

设置构建目标为API 17.在Eclipse中,你可以通过在项目中右击做到这一点并选择属性。然后,Android的下,选择Android的4.2作为构建目标。它也可能只是打开文件project.properties并设置目标的android-17

Set build target to API 17. In Eclipse you can achieve this by right clicking on the project and choose Properties. Then, under Android, select Android 4.2 as build target. It's also possible to just open the file project.properties and set target to android-17.

您做的不可以在Android清单更改为的minSdkVersion targetSdkVersion

You do not have to change either minSdkVersion or targetSdkVersion in the Android Manifest.

这篇关于没有资源的ident ifier在包'机器人'发现属性“widgetCategory”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆