[Legend Themes and Apps] Dr.Romca:
Hi guys, just a quick one about the battery I created...seems there is too much layers when the battery is 93%, I'm working on a repair, with more adjustments - GPS acquiring, smoother charging animation - the one I did uses 26 images instead of 17 which I have so it's not very smooth.

About that: I have a hard time building the framework-res.apk:

apktool b res framework-res.apk

where "res" is the folder in which all the files are (in the same folder apktool is)

this is what I get:

C:\Users\Romca\Dropbox\Android\Programs etc\APKtool>apktool b res res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
05: error: Public entry identifier 0x10803dc entry index is larger than availabl
e symbols (index 988, total symbols 986).
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
05: error: Public symbol drawable/stat_sys_battery_charge_anim6 declared here is
not defined.
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
06: error: Public entry identifier 0x10803de entry index is larger than availabl
e symbols (index 990, total symbols 986).
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
06: error: Public symbol drawable/stat_sys_battery_charge_anim7 declared here is
not defined.
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
07: error: Public entry identifier 0x10803df entry index is larger than availabl
e symbols (index 991, total symbols 986).
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
07: error: Public symbol drawable/stat_sys_battery_charge_anim8 declared here is
not defined.
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
08: error: Public entry identifier 0x10803e0 entry index is larger than availabl
e symbols (index 992, total symbols 986).
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
08: error: Public symbol drawable/stat_sys_battery_charge_anim9 declared here is
not defined.
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
09: error: Public entry identifier 0x10803e1 entry index is larger than availabl
e symbols (index 993, total symbols 986).
C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\res\values\public.xml:34
09: error: Public symbol drawable/stat_sys_battery_charge_animfull 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\Romca\AppData\Local\Temp\A
PKTOOL3472021016324607607.tmp, -x, -S, C:\Users\Romca\Dropbox\Android\Programs e
tc\APKtool\res\res, -M, C:\Users\Romca\Dropbox\Android\Programs etc\APKtool\res\
AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Romca\AppData\Local\Temp\APKTOOL3472021016324607607.tmp, -x, -S, C:\Users\R
omca\Dropbox\Android\Programs etc\APKtool\res\res, -M, C:\Users\Romca\Dropbox\An
droid\Programs etc\APKtool\res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more

C:\Users\Romca\Dropbox\Android\Programs etc\APKtool>

The resources are there - I just replaced those with different png's

And for the other errors - I just took the previous .apk, decompiled, edited battery_charge.xml to suit the pictures i used, edited public.xml in values to delete the pictures I didn't use - there was 26 of them, i used only 17...

Any hints?

Thanks!