[Android Q&A, Help & Troubleshooting] lightpsycho:
Hey there,

I recently started modding the stock 4.2.1 Gmail app to make it inverted with red accents and I'm running into errors when trying to compile. The only changes I've made were on /res/values/colors.xml (changing color hex values only, standard stuff). I'm using APK multitools, have my framework in proper dir, using option 12 (compile non-system APK)...

Running custom TouchWiz 4.1.1 ROM on Galaxy S3 T999

Here are the logs:

--------------------------------------------------------------------------

|2013-03-01 -- 15:23:15.81|

--------------------------------------------------------------------------

java version "1.7.0_15"

Java(TM) SE Runtime Environment (build 1.7.0_15-b03)

Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.google.andro

id.gm-1.apk\res\xml\gmail_widget_info.xml:2: error: No resource identifier found

for attribute 'widgetCategory' in package 'android'

C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.google.andro

id.gm-1.apk\res\xml-sw600dp\gmail_widget_info.xml:2: error: No resource identifi

er found for attribute 'widgetCategory' in package 'android'

C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.google.andro

id.gm-1.apk\res\xml\widget_info.xml:2: error: No resource identifier found for a

ttribute 'widgetCategory' in package 'android'

C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.google.andro

id.gm-1.apk\res\xml-sw600dp\widget_info.xml:2: error: No resource identifier fou

nd for attribute 'widgetCategory' in package 'android'

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl

ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-

sdk-version, 14, --target-sdk-version, 17, -F, C:\Users\Pascal\AppData\Local\Tem

p\APKTOOL8546294447776939075.tmp, -0, arsc, -I, C:\Users\Pascal\apktool\framewor

k\1.apk, -S, C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com

.google.android.gm-1.apk\res, -M, C:\Android\adt-bundle-windows-x86_64-20130219\

other\..\projects\com.google.android.gm-1.apk\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)

at brut.androlib.Androlib.buildResources(Androlib.java:283)

at brut.androlib.Androlib.build(Androlib.java:206)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:228)

at brut.apktool.Main.main(Main.java:79)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not

exec command: [aapt, p, --min-sdk-version, 14, --target-sdk-version, 17, -F, C:

\Users\Pascal\AppData\Local\Temp\APKTOOL8546294447776939075.tmp, -0, arsc, -I, C

:\Users\Pascal\apktool\framework\1.apk, -S, C:\Android\adt-bundle-windows-x86_64

-20130219\other\..\projects\com.google.android.gm-1.apk\res, -M, C:\Android\adt-

bundle-windows-x86_64-20130219\other\..\projects\com.google.android.gm-1.apk\And

roidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:357)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd

k-version, 14, --target-sdk-version, 17, -F, C:\Users\Pascal\AppData\Local\Temp\

APKTOOL8546294447776939075.tmp, -0, arsc, -I, C:\Users\Pascal\apktool\framework\

1.apk, -S, C:\Android\adt-bundle-windows-x86_64-20130219\other\..\projects\com.g

oogle.android.gm-1.apk\res, -M, C:\Android\adt-bundle-windows-x86_64-20130219\ot

her\..\projects\com.google.android.gm-1.apk\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:355)

... 6 more

Press any key to continue . . .

Anybody knows what could be going on here? Thanks!

EDIT: for each of the problematic XML files, the attribute 'widgetCategory' has a value of 0x3...would that be normal?? Would I need a 4.2.1 framework to compile this 4.2.1 Gmail apk (don't think this would necessarily make sense...)?