lnln1111 / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
0 stars 0 forks source link

Unable to rebuild framework-res from AOSP 4.0.3 #313

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.apktool b framework-res-org framework-res.apk
2.
3.

What is the expected output? What do you see instead?
should see the regular flow and then command line return

i get the following:

W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values\plurals.xml:79: 
error: Multiple substitutions specified in n
on-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values\plurals.xml:79: 
error: Found tag </item> where </plurals> is
 expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-af\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-af\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-am\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-am\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ar\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ar\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-bg\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-bg\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ca\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ca\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-cs\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-cs\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-da\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-da\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-de\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-de\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-el\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-el\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-en-rGB\plurals.xml:79: error: Multiple 
substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" 
attribute?
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-en-rGB\plurals.xml:79: error: Found tag 
</item> where </plur
als> is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-es\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-es\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-es-rUS\plurals.xml:79: error: Multiple 
substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" 
attribute?
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-es-rUS\plurals.xml:79: error: Found tag 
</item> where </plur
als> is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-fa\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-fa\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-fi\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-fi\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-fr\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-fr\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-hi\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-hi\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-hr\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-hr\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-hu\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-hu\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-in\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-in\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-it\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-it\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-iw\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-iw\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ja\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ja\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ko\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ko\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-lt\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attException 
in thread "main" brut.androlib.AndrolibE
xception: brut.common.BrutException: could not exec command: [aapt, p, -F, 
C:\Users\langeg\AppData\Local\Temp\APKTOOL290
9077382348952097.tmp, -x, -S, H:\Themes\Stock\Stock 
Framwork-res\framework-res\res, -M, H:\Themes\Stock\Stock Framwork-r
es\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\langeg\AppData\Local\Temp\APKTOOL29
09077382348952097.tmp, -x, -S, H:\Themes\Stock\Stock 
Framwork-res\framework-res\res, -M, H:\Themes\Stock\Stock Framwork-
res\framework-res\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
        ... 6 more
ribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-lt\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-lv\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-lv\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ms\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ms\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-nb\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-nb\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-nl\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-nl\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-pl\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-pl\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-pt\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-pt\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-pt-rPT\plurals.xml:79: error: Multiple 
substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" 
attribute?
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-pt-rPT\plurals.xml:79: error: Found tag 
</item> where </plur
als> is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ro\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ro\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ru\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-ru\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sk\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sk\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sl\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sl\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sr\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sr\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sv\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sv\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sw\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-sw\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-th\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-th\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-tl\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-tl\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-tr\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-tr\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-uk\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-uk\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-vi\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-vi\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-zh-rCN\plurals.xml:79: error: Multiple 
substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" 
attribute?
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-zh-rCN\plurals.xml:79: error: Found tag 
</item> where </plur
als> is expected
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-zh-rTW\plurals.xml:79: error: Multiple 
substitutions specifi
ed in non-positional format; did you mean to add the formatted="false" 
attribute?
H:\Themes\Stock\Stock 
Framwork-res\framework-res\res\values-zh-rTW\plurals.xml:79: error: Found tag 
</item> where </plur
als> is expected
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-zu\plurals.xml:79: 
error: Multiple substitutions specified i
n non-positional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Framwork-res\framework-res\res\values-zu\plurals.xml:79: 
error: Found tag </item> where </plurals>
 is expected

What version of the product are you using? On what operating system?
using latest version of apktool and have tried what others have said which is 
just to use 1.4.2 to decompile and 1.4.3 to recompile but that doesn't work 
either.

Please provide any additional information below.

all i changed was a hex color value under value\color for the lockscreen clock. 
 So i am not sure what is going on i have been able to decompile and recompile 
other apk's just fine...

Original issue reported on code.google.com by Gregory....@gmail.com on 7 Mar 2012 at 10:06

GoogleCodeExporter commented 9 years ago
What sucks is now trying to get this to work now Phone wont compile due to this 
error not sure if they are related or not....

H:\Themes\Stock\Stock Phone>java -jar C:\Windows\apktool.jar b Phone Phone.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
H:\Themes\Stock\Stock Phone\Phone\res\values-de\strings.xml:194: error: 
Multiple substitutions specified in non-position
al format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Phone\Phone\res\values-de\strings.xml:195: error: 
Unexpected end tag string
H:\Themes\Stock\Stock Phone\Phone\res\values-es\strings.xml:194: error: 
Multiple substitutions specified in non-position
al format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Phone\Phone\res\values-es\strings.xml:195: error: 
Unexpected end tag string
H:\Themes\Stock\Stock Phone\Phone\res\values-es-rUS\strings.xml:197: error: 
Multiple substitutions specified in non-posi
tional format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Phone\Phone\res\values-es-rUS\strings.xml:198: error: 
Unexpected end tag string
H:\Themes\Stock\Stock Phone\Phone\res\values-it\strings.xml:194: error: 
Multiple substitutions specified in non-position
al format; did you mean to add the formatted="false" attribute?
H:\Themes\Stock\Stock Phone\Phone\res\values-it\strings.xml:195: error: 
Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: 
brut.common.BrutException: could not exec command: [aapt, p,
 -F, C:\Users\langeg\AppData\Local\Temp\APKTOOL5156915918568866290.tmp, -I, C:\Users\langeg\apktool\framework\1.apk, -S,
 H:\Themes\Stock\Stock Phone\Phone\res, -M, H:\Themes\Stock\Stock Phone\Phone\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\langeg\AppData\Local\Temp\APKTOOL51
56915918568866290.tmp, -I, C:\Users\langeg\apktool\framework\1.apk, -S, 
H:\Themes\Stock\Stock Phone\Phone\res, -M, H:\Th
emes\Stock\Stock Phone\Phone\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
        ... 6 more

Original comment by Gregory....@gmail.com on 7 Mar 2012 at 10:51

GoogleCodeExporter commented 9 years ago
Having a similar issue with LT26i framework-res.apk. A lot of:

/home/brunojcm/Android/LT26i/framework-res/res/values-es-rUS/plurals.xml:79: 
error: Multiple substitutions specified in non-positional format; did you mean 
to add the formatted="false" attribute?
/home/brunojcm/Android/LT26i/framework-res/res/values-es-rUS/plurals.xml:79: 
error: Found tag </item> where </plurals> is expected

Original comment by bruno...@gmail.com on 28 Jun 2012 at 3:18

GoogleCodeExporter commented 9 years ago
Seems to be fixed in v1.5.0

Original comment by connor.tumbleson on 17 Nov 2012 at 8:48