Skip to content Skip to sidebar Skip to footer

No Resource Ident Ifier Found For Attribute 'widgetCategory' In Package 'android'

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. The error is this: No re

Solution 1:

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.

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


Solution 2:

I just ran into this issue myself. You need to update the MinSdkVersion of the App (in the manifest.xml) to 17.

If it uses a MinSdkVersion below 17, it will not recognize the widgetCategory resource.

Cheers!


Solution 3:

All the answers are geared towards someone using Eclipse and Java when the OP said he's using apktool. Most likely the problem is apktool is using a framework SDK file below level 17. https://code.google.com/p/android-apktool/wiki/FrameworkFiles


Post a Comment for "No Resource Ident Ifier Found For Attribute 'widgetCategory' In Package 'android'"