hey i was trying to compile my email.apk but keep getting errors sorry for the long post can anyone help me. this is what i am getting what have i done wrong.
C:\>cd "C:\Documents and Settings\belsmith\Desktop\Apktool"
C:\Documents and Settings\belsmith\Desktop\Apktool>apktool b email
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\belsmith\LOCALS~1\Temp\
APKTOOL5343843107761720866.tmp, -I, C:\Documents and Settings\belsmith\apktool\f
ramework\1.apk, -I, C:\Documents and Settings\belsmith\apktool\framework\2.apk,
-S, C:\Documents and Settings\belsmith\Desktop\Apktool\email\res, -M, C:\Documen
ts and Settings\belsmith\Desktop\Apktool\email\AndroidMan ifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a: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, C:\D
OCUME~1\belsmith\LOCALS~1\Temp\APKTOOL534384310776 1720866.tmp, -I, C:\Documents
and Settings\belsmith\apktool\framework\1.apk, -I, C:\Documents and Settings\bel
smith\apktool\framework\2.apk, -S, C:\Documents and Settings\belsmith\Desktop\Ap
ktool\email\res, -M, C:\Documents and Settings\belsmith\Desktop\Apktool\email\An
droidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more
aapt: warning: string 'account_settings_smime_import_certificate_title' has no d
efault translation in C:\Documents and Settings\belsmith\Desktop\Apktool\email\r
es; found: de es fr it ko
aapt: warning: string 'account_settings_smime_installed_certificates_lis t' has n
o default translation in C:\Documents and Settings\belsmith\Desktop\Apktool\emai
l\res; found: de es fr it ko
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-de\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-de\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-es\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-es\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-fr\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-fr\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-it\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-it\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-ko\plurals.x
ml:4: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\belsmith\Desktop\Apktool\email\res\values-ko\plurals.x
ml:4: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\belsmith\Desktop\Apktool>
Related
somebody help me please.... i tried to mod my framework-res.apk but apktool gives me the follow error when i was building the apk
W: Could not find sources
I: Building resources...
C:\Users\DhK\Desktop\ICS\framework-res\res\values\public.xml:3433: error: Public
symbol drawable/APKTOOL_DUMMY_02d1 declared here is not defined.
C:\Users\DhK\Desktop\ICS\framework-res\res\values\public.xml:3434: error: Public
symbol drawable/APKTOOL_DUMMY_02d2 declared here is not defined.
C:\Users\DhK\Desktop\ICS\framework-res\res\values\public.xml:2709: error: Public
entry identifier 0x1080366 entry index is larger than available symbols (index
870, total symbols 870).
C:\Users\DhK\Desktop\ICS\framework-res\res\values\public.xml:2709: error: Public
symbol drawable/selected_day_background declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\DhK\AppData\Local\Temp\APK
TOOL3478875015460189783.tmp, -x, -S, C:\Users\DhK\Desktop\ICS\framework-res\res,
-M, C:\Users\DhK\Desktop\ICS\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\DhK\AppData\Local\Temp\APKTOOL3478875015460189783.tmp, -x, -S, C:\Users\DhK
\Desktop\ICS\framework-res\res, -M, C:\Users\DhK\Desktop\ICS\framework-res\Andro
idManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
if anybody want try here is my files.... (if "anybody" can build it.... i owe he a beer)
Delete that public.xml in values and try to compile again.
I am trying to theme a rom I am using and when I build I get a bunch of errors. All I did was replace the original png with the new ones....
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" (skipping hidden file '/Users/mikec84/Desktop/out/./res/.DS_Store')
(skipping hidden file '/Users/mikec84/Desktop/out/./res/drawable/.DS_Store')
(skipping hidden file '/Users/mikec84/Desktop/out/./res/drawable-hdpi/.DS_Store')
(skipping hidden file '/Users/mikec84/Desktop/out/./res/values/.DS_Store')
/Users/mikec84/Desktop/out/./res/values/public.xml:4352: error: Public entry identifier 0x10804b5 entry index is larger than available symbols (index 1205, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4352: error: Public symbol drawable/stat_sys_battery_charge_animfull declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4353: error: Public symbol drawable/stat_sys_download_anim6 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4354: error: Public symbol drawable/stat_sys_download_anim7 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4355: error: Public symbol drawable/stat_sys_download_anim8 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4356: error: Public symbol drawable/stat_sys_download_anim9 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4027: error: Public entry identifier 0x10804ba entry index is larger than available symbols (index 1210, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4027: error: Public symbol drawable/stat_sys_upload_anim0 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4028: error: Public entry identifier 0x10804bb entry index is larger than available symbols (index 1211, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4028: error: Public symbol drawable/stat_sys_upload_anim1 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4029: error: Public entry identifier 0x10804bc entry index is larger than available symbols (index 1212, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4029: error: Public symbol drawable/stat_sys_upload_anim2 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4030: error: Public entry identifier 0x10804bd entry index is larger than available symbols (index 1213, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4030: error: Public symbol drawable/stat_sys_upload_anim3 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4031: error: Public entry identifier 0x10804be entry index is larger than available symbols (index 1214, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4031: error: Public symbol drawable/stat_sys_upload_anim4 declared here is not defined.
/Users/mikec84/Desktop/out/./res/values/public.xml:4032: error: Public entry identifier 0x10804bf entry index is larger than available symbols (index 1215, total symbols 1205).
/Users/mikec84/Desktop/out/./res/values/public.xml:4032: error: Public symbol drawable/stat_sys_upload_anim5 declared here is not defined.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/fx/phlzw8314jj_dmhwst13db4c0000gn/T/APKTOOL2378841120587575408.tmp, -x, -S, /Users/mikec84/Desktop/out/./res, -M, /Users/mikec84/Desktop/out/./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, /var/folders/fx/phlzw8314jj_dmhwst13db4c0000gn/T/APKTOOL2378841120587575408.tmp, -x, -S, /Users/mikec84/Desktop/out/./res, -M, /Users/mikec84/Desktop/out/./AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Michaels-iMac:out mikec84$
stat_sys_download_anim0
stat_sys_download_anim1
stat_sys_download_anim2
stat_sys_download_anim3
stat_sys_download_anim4
stat_sys_download_anim5
stat_sys_download_anim6
stat_sys_download_anim7
stat_sys_download_anim8
stat_sys_download_anim9
InIn /res/values/public.xml Not defined
Vincent-LZ said:
stat_sys_download_anim0
stat_sys_download_anim1
stat_sys_download_anim2
stat_sys_download_anim3
stat_sys_download_anim4
stat_sys_download_anim5
stat_sys_download_anim6
stat_sys_download_anim7
stat_sys_download_anim8
stat_sys_download_anim9
InIn /res/values/public.xml Not defined
Click to expand...
Click to collapse
Yea I deleted a few PNG then deleted the code corresponding to those images and thing I messed something up in the process.
I ended up booting to Ubuntu and started over from there..
Sent from my SPH-D710 using xda premium
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL161582936329531702.tmp, -I, /home/michaelc/apktool/framework/1.apk, -S, /home/michaelc/Desktop/outLauncher/./res, -M, /home/michaelc/Desktop/outLauncher/./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, /tmp/APKTOOL161582936329531702.tmp, -I, /home/michaelc/apktool/framework/1.apk, -S, /home/michaelc/Desktop/outLauncher/./res, -M, /home/michaelc/Desktop/outLauncher/./AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Having an issue when building an apk. This is different from my OP.....
Hi and sorry if this post is already answerd but i can't find help anywhere...i haven't too much knowlage over linux/android but im trying to learn...so my problem is that i can't compile systemui.apk so i can make some modifications on it...after compile it with apktool 1.4.3 i always get this error
Code:
C:\Apktool\systemui\res\values\public.xml:108: error: Public symbol drawable/sta
t_sys_roaming_cdma_0 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:9: error: Public symbol drawable/stat_
sys_roaming_cdma_flash declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:109: error: Public symbol drawable/sta
t_sys_roaming_cdma_flash_anim0 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:110: error: Public symbol drawable/sta
t_sys_roaming_cdma_flash_anim1 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:111: brut.androlib.AndrolibException:
brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\PIKACH
~1\AppData\Local\Temp\APKTOOL453738301055063751.tmp, -I, C:\Users\Pikachukaki\ap
ktool\framework\1.apk, -I, C:\Users\Pikachukaki\apktool\framework\2.apk, -S, C:\
Apktool\systemui\res, -M, C:\Apktool\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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, C:\U
sers\PIKACH~1\AppData\Local\Temp\APKTOOL453738301055063751.tmp, -I, C:\Users\Pik
achukaki\apktool\framework\1.apk, -I, C:\Users\Pikachukaki\apktool\framework\2.a
pk, -S, C:\Apktool\systemui\res, -M, C:\Apktool\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
error: Public symbol drawable/stat_sys_signal_0 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:112: error: Public symbol drawable/sta
t_sys_signal_0_fully declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:113: error: Public symbol drawable/sta
t_sys_signal_1 declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:114: error: Public symbol drawable/sta
t_sys_signal_1_fully declared here is not defined.
C:\Apktool\systemui\res\values\public.xml:115: error: Public symbol drawable/sta
t_sys_signal_2 declared here is not defined.
The public errors was much more but i short it for the purpose of the post...
I already add my 2 frameworks with if command and add to see if it fix it systemui too..but i still get those errors...i have to say that i have already changed some pngs from drawable-hdpi without compile/decompile the systemui...
And last but not least i have huawei ideos x5 (U8800pro) device...and we heard that huawei has locked his system apks...cos framework-res.apk do the same think!!So if anyone can help me i will be gradeful!!thanks and sorry about my english!!!
I tried to decompiling framework-res.apk and I succeded.I made all the changes I need to make and tried to recompile but I get this error
Code:
[*] D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res
recompiling D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res...
W: Could not find sources
I: Building resources...
aapt: warning: string 'gps_assisted_data_download' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: ko
aapt: warning: string 'lockscreen_too_many_failed_attempts_countdown' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: az bg ca cs da de el en_GB en_US es es_ES es_US et eu fi fr ga gl hr hu hy is is_IS it ka kk ko lt lv mk nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv tr uk uz
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:83: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:83: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rGB\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rGB\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-pt\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-pt\plurals.xml:79: error: Found tag </item> where </plurals> is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vijai\AppData\Local\Temp\APKTOOL3129400460395038332.tmp, -x, -S, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\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, C:\Users\Vijai\AppData\Local\Temp\APKTOOL3129400460395038332.tmp, -x, -S, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I have tried all the tools including wannam apktool,apk multitool,original apktool,auto apktool and many others.But still no luck.
I have latest java JDK installed and confirmed it working and have platform-tools added in path variables too.Still no luck.Could someone please help me out?
vijai2011 said:
I tried to decompiling framework-res.apk and I succeded.I made all the changes I need to make and tried to recompile but I get this error
Code:
[*] D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res
recompiling D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res...
W: Could not find sources
I: Building resources...
aapt: warning: string 'gps_assisted_data_download' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: ko
aapt: warning: string 'lockscreen_too_many_failed_attempts_countdown' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: az bg ca cs da de el en_GB en_US es es_ES es_US et eu fi fr ga gl hr hu hy is is_IS it ka kk ko lt lv mk nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv tr uk uz
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:83: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:83: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rGB\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rGB\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-pt\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-pt\plurals.xml:79: error: Found tag </item> where </plurals> is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vijai\AppData\Local\Temp\APKTOOL3129400460395038332.tmp, -x, -S, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\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, C:\Users\Vijai\AppData\Local\Temp\APKTOOL3129400460395038332.tmp, -x, -S, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I have tried all the tools including wannam apktool,apk multitool,original apktool,auto apktool and many others.But still no luck.
I have latest java JDK installed and confirmed it working and have platform-tools added in path variables too.Still no luck.Could someone please help me out?
Click to expand...
Click to collapse
Ah, the multiple substitutions error. Nasty. Are you using the most recent version of apktool?
I would suggest trying Tickle My Android, which has the most recent version of apktool built in and just happens to be in the link in my signature.
If that doesn't work, it's worth reporting the issue here: http://forum.xda-developers.com/showthread.php?t=1755243
This is the official apktool thread and is run by the actual person who's taken over making the tool.
Ticklefish said:
Ah, the multiple substitutions error. Nasty. Are you using the most recent version of apktool?
I would suggest trying Tickle My Android, which has the most recent version of apktool built in and just happens to be in the link in my signature.
If that doesn't work, it's worth reporting the issue here: http://forum.xda-developers.com/showthread.php?t=1755243
This is the official apktool thread and is run by the actual person who's taken over making the tool.
Click to expand...
Click to collapse
I used the latest apktool and aapt from the thread you mentioned and it worked flawlessly And FYI I used you tool v11 but got compilation errors and found the cause .Could I PM you the solution for it or can I do it here.
vijai2011 said:
I used the latest apktool and aapt from the thread you mentioned and it worked flawlessly And FYI I used you tool v11 but got compilation errors and found the cause .Could I PM you the solution for it or can I do it here.
Click to expand...
Click to collapse
You're welcome to do it here.
Did you say you've used version 11 of my tool? It's only on version 4.0...
vijai2011 said:
I used the latest apktool and aapt from the thread you mentioned and it worked flawlessly And FYI I used you tool v11 but got compilation errors and found the cause .Could I PM you the solution for it or can I do it here.
Click to expand...
Click to collapse
Maybe this could help even if the latest apktool doesn't work:
http://forum.xda-developers.com/showthread.php?p=30025707
When i port the theme and try to compile the theme i get these
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:4: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/android').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:5: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_settings').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:6: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_systemui').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:7: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_vending').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_ic_notify_button_bg.xml:18: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_list_selector_pressed_holo_dark').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_ic_notify_button_bg.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_expand_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_notification_row_legacy_bg.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_header_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_notification_row_legacy_bg.xml:20: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_header_bg').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_qs_tile_background.xml:18: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_qs_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_qs_tile_background.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_qs_first_background').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.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, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.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, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more