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 resource identifier found for attribute 'widgetCategory' in package 'android'
I have tried using the latest aapt and changing the sdk level in apktool.yml but neither solved the problem.
Is there anything I need to change to add support for Android 4.2 to apktool?
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
minSdkVersionortargetSdkVersionin the Android Manifest.