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...)?
Found problem to this issue!
Solution was to remove lines for attribute 'widgetCategory' for:
\res\xml\gmail_widget_info.xml
\res\xml-sw600dp\gmail_widget_info.xml
res\xml\widget_info.xml
\res\xml-sw600dp\widget_info.xml
Recompiled without any errors, couldn't find any impact on functionality!
Related
|Sat 06/09/2012 -- 6:27:33.93|
--------------------------------------------------------------------------
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\res\values\styles.xml:146: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Dialog.Alert'.
D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\res\values\styles.xml:158: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Dialog.Alert'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, D:\Users\Nonake\AppData\Local\Temp\APKTOOL3086685318560145745.tmp, -I, D:\Users\Nonake\apktool\framework\1.apk, -I, D:\Users\Nonake\apktool\framework\2.apk, -S, D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\res, -M, D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, D:\Users\Nonake\AppData\Local\Temp\APKTOOL3086685318560145745.tmp, -I, D:\Users\Nonake\apktool\framework\1.apk, -I, D:\Users\Nonake\apktool\framework\2.apk, -S, D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\res, -M, D:\Apk_Manager_5.0.2\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Click to expand...
Click to collapse
Any solution ? I didn't touch any stye.xm...or even string.xml in /values...
I just add more folder/values-kmrKH
hey,i am trying to decompile contacts.apk from my micromax a52.
i tried from apk manager and apk multi tools but it is giving error
Code:
can't find framework resources for package of id:2.you must install proper framework files.
now i installed framework files to my computer and also by using "pull dependencies from device".
but still couldn't decompile it properly.it is also giving error during recompiling if i ignore those error and mod it.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.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, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
plsss someone give a helping hand.
Have sdk installed and then try again.I could not help with apkmulti tools but in original apktool,you can install frameworks with
Code:
java -jar apktool.jar if framework-apk
Sent from my GT-N7000 using xda app-developers app
already installed framework!!
vijai2011 said:
Have sdk installed and then try again.I could not help with apkmulti tools but in original apktool,you can install frameworks with
Code:
java -jar apktool.jar if framework-apk
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
have already installed framework from my phone from which that app is taken.
amank22 said:
have already installed framework from my phone from which that app is taken.
Click to expand...
Click to collapse
If its a samsung phone,did yoh also install twframework-res.apk?And htc also has 1 more framework but I don't know what it is as I have never owned a htc or modded one.Also have sdk?
Sent from my GT-N7000 using xda app-developers app
amank22 said:
hey,i am trying to decompile contacts.apk from my micromax a52.
i tried from apk manager and apk multi tools but it is giving error
Code:
can't find framework resources for package of id:2.you must install proper framework files.
now i installed framework files to my computer and also by using "pull dependencies from device".
but still couldn't decompile it properly.it is also giving error during recompiling if i ignore those error and mod it.
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.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, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\aman\AppData\Local\Temp\APKTOOL2048703324560073052.tmp, -0, arsc, -I, C:\Users\aman\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\Contacts.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
plsss someone give a helping hand.
Click to expand...
Click to collapse
Pull out all the *.apk files from /system/framework/
N install them.
The frst bein framework-res.apk n thn the others.
Only *.apk files. Not *.jar files.
I tink it will help u get over your prblms..
Don't be lazy.
Lift your hand n press the Thanxxx Button.=)
ok ok..will do it n tell it if it solves my problem..
help me i have same issue when i compliling
i'm installed java and framework-res.apk
Please enter the number of your choice: 1
Enter the name of the folder to assembly (ex: dis_Name.apk) : dis_commod.apk
FICHIER
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp
\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework
\1.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -
M, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.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, 9, --target-sdk-version, 18, -F, C:\
Users\Finish\AppData\Local\Temp\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:
\Users\Finish\apktool\framework\1.apk, -S, D:\documents\ANDROID\tool mod android
\easy apk\dis_commod.apk\res, -M, D:\documents\ANDROID\tool mod android\easy apk
\dis_commod.apk\AndroidManifest.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, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp\A
PKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework\1
.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -M,
D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
java.io.FileNotFoundException: dis_commod.apk\dist\commod.apk (The system cannot
find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:320)
Press any key to continue . . .
Click to expand...
Click to collapse
change the path names
superuser.pm said:
help me i have same issue when i compliling
i'm installed java and framework-res.apk
Click to expand...
Click to collapse
I think your problem lies in this line:
Code:
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
try to remove the blank charcters from the path...change folder names in the path.
I have this error when I try to compile:
Code:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Proprietario\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:176: error: Error retrieving parent for item: No resource found that matches the given name 'Base.ThemeOverlay'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:462: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:506: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:527: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:535: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values-v21\styles.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:554: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:564: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat.DropDownItem'.
C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res\values\styles.xml:603: error: Error retrieving parent for item: No resource found that matches the given name 'Base.Widget.AppCompat'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.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, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 21, -F, C:\Users\PROPRI~1\AppData\Local\Temp\APKTOOL3070521381926684717.tmp, -0, arsc, -I, C:\Users\Proprietario\apktool\framework\1.apk, -S, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\res, -M, C:\Users\Proprietario\Desktop\APK-Multi-Tool\other\..\projects\Maps.to.Sygic_v9.0.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
What's the problem?
Thanks.
Hello to all!
I have a problem with recompiling an apk. Given that the apk is a free program, in practice i decompile the apk (with apktool), I make the changes (in particular, a few tweaks to the Italian translation of the app that often is not complete), but when I go to recompile everything I have these errors:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
E:\Documenti\Download\Francesco\apktool1.5.2\w\res\xml-v17\widget_info.xml:2: er
ror: No resource identifier found 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, 7, --target-sdk-version, 17, -F, C:\DOCUME~1\FRANCE~1\IMPOST~1\Temp
\APKTOOL5497585975401121507.tmp, -0, arsc, -I, C:\Documents and Settings\Frances
co\apktool\framework\1.apk, -S, E:\Documenti\Download\Francesco\apktool1.5.2\w\r
es, -M, E:\Documenti\Download\Francesco\apktool1.5.2\w\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, 7, --target-sdk-version, 17, -F, C:\
DOCUME~1\FRANCE~1\IMPOST~1\Temp\APKTOOL5497585975401121507.tmp, -0, arsc, -I, C:
\Documents and Settings\Francesco\apktool\framework\1.apk, -S, E:\Documenti\Down
load\Francesco\apktool1.5.2\w\res, -M, E:\Documenti\Download\Francesco\apktool1.
5.2\w\AndroidManifest.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, 7, --target-sdk-version, 17, -F, C:\DOCUME~1\FRANCE~1\IMPOST~1\Temp\A
PKTOOL5497585975401121507.tmp, -0, arsc, -I, C:\Documents and Settings\Francesco
\apktool\framework\1.apk, -S, E:\Documenti\Download\Francesco\apktool1.5.2\w\res
, -M, E:\Documenti\Download\Francesco\apktool1.5.2\w\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
But I do not understand what they mean. The strange thing is that if i decompile the apk and recompile without changes anythings, it gives me the same errors.
Any suggestions?
Sorry for my bad english!
Ciccio0184 said:
Hello to all!
I have a problem with recompiling an apk. Given that the apk is a free program, in practice i decompile the apk (with apktool), I make the changes (in particular, a few tweaks to the Italian translation of the app that often is not complete), but when I go to recompile everything I have these errors:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
E:\Documenti\Download\Francesco\apktool1.5.2\w\res\xml-v17\widget_info.xml:2: er
ror: No resource identifier found 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, 7, --target-sdk-version, 17, -F, C:\DOCUME~1\FRANCE~1\IMPOST~1\Temp
\APKTOOL5497585975401121507.tmp, -0, arsc, -I, C:\Documents and Settings\Frances
co\apktool\framework\1.apk, -S, E:\Documenti\Download\Francesco\apktool1.5.2\w\r
es, -M, E:\Documenti\Download\Francesco\apktool1.5.2\w\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, 7, --target-sdk-version, 17, -F, C:\
DOCUME~1\FRANCE~1\IMPOST~1\Temp\APKTOOL5497585975401121507.tmp, -0, arsc, -I, C:
\Documents and Settings\Francesco\apktool\framework\1.apk, -S, E:\Documenti\Down
load\Francesco\apktool1.5.2\w\res, -M, E:\Documenti\Download\Francesco\apktool1.
5.2\w\AndroidManifest.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, 7, --target-sdk-version, 17, -F, C:\DOCUME~1\FRANCE~1\IMPOST~1\Temp\A
PKTOOL5497585975401121507.tmp, -0, arsc, -I, C:\Documents and Settings\Francesco
\apktool\framework\1.apk, -S, E:\Documenti\Download\Francesco\apktool1.5.2\w\res
, -M, E:\Documenti\Download\Francesco\apktool1.5.2\w\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
But I do not understand what they mean. The strange thing is that if i decompile the apk and recompile without changes anythings, it gives me the same errors.
Any suggestions?
Sorry for my bad english!
Click to expand...
Click to collapse
Use Xplore filemanager for decompile & recompile, for sign apk use ZipSigner...
Hi there,
I recently decided to start doing some theming on my Lollipop ROM, cataclysm for nexus 5. Now, I tried to follow this guide http://forum.xda-developers.com/showthread.php?t=1814441 to recompile and decompile and I used this guide http://forum.xda-developers.com/android/themes/guide-t2978121 to try and theme some colors in systemui.apk. I started out with just the primary color of the notification drawer, just to test it.
But, when I try to recompile the apk, I get some errors. I have no idea what to do with them.
C:\Users\Eldin\Documents\apktool>apktool b SystemUI test.apk
I: Using Apktool 2.0.0-RC3 on SystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:35: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:36: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:41: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:51: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:151: error: Erro
r retrieving parent for item: No resource found that matches the given name '@an
droid:style/TextAppearance.StatusBar.Ticker'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Eldin\
AppData\Local\Temp\brut_util_Jar_2232414949666097057.tmp, p, --forced-package-id
, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --ve
rsion-name, 5.0.2-1649326, -F, C:\Users\Eldin\AppData\Local\Temp\APKTOOL53377920
12544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apktool\framework\1.apk, -S, C:\Us
ers\Eldin\Documents\apktool\SystemUI\res, -M, C:\Users\Eldin\Documents\apktool\S
ystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:374)
at brut.androlib.Androlib.build(Androlib.java:277)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Eldin\AppData\Local\Temp\brut_util_Jar_2232414949666097
057.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-versio
n, 21, --version-code, 21, --version-name, 5.0.2-1649326, -F, C:\Users\Eldin\App
Data\Local\Temp\APKTOOL5337792012544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apk
tool\framework\1.apk, -S, C:\Users\Eldin\Documents\apktool\SystemUI\res, -M, C:\
Users\Eldin\Documents\apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:488)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Eldin\Ap
pData\Local\Temp\brut_util_Jar_2232414949666097057.tmp, p, --forced-package-id,
127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --vers
ion-name, 5.0.2-1649326, -F, C:\Users\Eldin\AppData\Local\Temp\APKTOOL5337792012
544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apktool\framework\1.apk, -S, C:\User
s\Eldin\Documents\apktool\SystemUI\res, -M, C:\Users\Eldin\Documents\apktool\Sys
temUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:482)
... 6 more
C:\Users\Eldin\Documents\apktool>
All I changed were 2 colors in res/values/colors.xml.
Can point me in the right direction?
Hello, I do not speak English very well, and that's why I'm writing with Google Translate. Who can help me compile whatsapp? Every time I try to recompile, I find these errors:
C:\apktool>apktool b Whatsapp
I: Using Apktool 2.0.0-RC3 on Whatsapp
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\Whatsapp\res\xml\whatsapp_widget.xml:2: error: No resource identifier
found for attribute 'widgetCategory' in package 'android'
C:\apktool\Whatsapp\res\xml\widget_info.xml:2: error: No resource identifier fou
nd for attribute 'initialKeyguardLayout' in package 'android'
C:\apktool\Whatsapp\res\xml\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: [C:\Users\PC\App
Data\Local\Temp\brut_util_Jar_8673526721265381617.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 48450, --ver
sion-name, 2.11.238, -F, C:\Users\PC\AppData\Local\Temp\APKTOOL51129355695285053
61.tmp, -I, C:\Users\PC\apktool\framework\1.apk, -S, C:\apktool\Whatsapp\res, -M
, C:\apktool\Whatsapp\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:374)
at brut.androlib.Androlib.build(Androlib.java:277)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\PC\AppData\Local\Temp\brut_util_Jar_8673526721265381617
.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 1
9, --version-code, 48450, --version-name, 2.11.238, -F, C:\Users\PC\AppData\Loca
l\Temp\APKTOOL5112935569528505361.tmp, -I, C:\Users\PC\apktool\framework\1.apk,
-S, C:\apktool\Whatsapp\res, -M, C:\apktool\Whatsapp\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:488)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\PC\AppDa
ta\Local\Temp\brut_util_Jar_8673526721265381617.tmp, p, --forced-package-id, 127
, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 48450, --versi
on-name, 2.11.238, -F, C:\Users\PC\AppData\Local\Temp\APKTOOL5112935569528505361
.tmp, -I, C:\Users\PC\apktool\framework\1.apk, -S, C:\apktool\Whatsapp\res, -M,
C:\apktool\Whatsapp\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:482)
... 6 more
Please, Help me