desword / android-apktool

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

Error decomplie & build apk: AndroidManifest.xml Error parsing XML: not well-formed #617

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Decomplie
java -jar apktool_2.0.0b9.jar d -f Asphalt_8_1.3.0l.mod.apk

OUTPUT:

[Fatal Error] AndroidManifest.xml:2:37: Element type "manifest" must be 
followed by 

Fatal Error but still decomplied
2. build
java -jar apktool_2.0.0b9.jar b TitaniumBackup TitaniumBackup-re.apk

OUTPUT:
I: Using Apktool 2.0.0-Beta9 on TitaniumBackup
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
/home/vinhnd/Desktop/exMod/ModeGame/datatest/test/TitaniumBackup/AndroidManifest
.xml:2: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: [/tmp/brut_util_Jar_7324008864005948508.tmp, p, --forced-package-id, 
127, --version-code, 333, -F, /tmp/APKTOOL345710451740613243.tmp, -0, arsc, -I, 
/home/vinhnd/apktool/framework/1.apk, -S, 
/home/vinhnd/Desktop/exMod/ModeGame/datatest/test/TitaniumBackup/res, -M, 
/home/vinhnd/Desktop/exMod/ModeGame/datatest/test/TitaniumBackup/AndroidManifest
.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
    at brut.androlib.Androlib.buildResources(Androlib.java:363)
    at brut.androlib.Androlib.build(Androlib.java:286)
    at brut.androlib.Androlib.build(Androlib.java:258)
    at brut.apktool.Main.cmdBuild(Main.java:236)
    at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could 
not exec command: [/tmp/brut_util_Jar_7324008864005948508.tmp, p, 
--forced-package-id, 127, --version-code, 333, -F, 
/tmp/APKTOOL345710451740613243.tmp, -0, arsc, -I, 
/home/vinhnd/apktool/framework/1.apk, -S, 
/home/vinhnd/Desktop/exMod/ModeGame/datatest/test/TitaniumBackup/res, -M, 
/home/vinhnd/Desktop/exMod/ModeGame/datatest/test/TitaniumBackup/AndroidManifest
.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
    ... 5 more
Caused by: brut.common.BrutException: could not exec command: 
[/tmp/brut_util_Jar_7324008864005948508.tmp, p, --forced-package-id, 127, 
--version-code, 333, -F, /tmp/APKTOOL345710451740613243.tmp, -0, arsc, -I, 
/home/vinhnd/apktool/framework/1.apk, -S, 
/home/vinhnd/Desktop/exMod/ModeGame/datatest/test/TitaniumBackup/res, -M, 
/home/vinhnd/Desktop/exMod/ModeGame/datatest/test/TitaniumBackup/AndroidManifest
.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)
    ... 6 more

What version of the product are you using? On what operating system?
-apktool 2.0.0.9 Beta
-Ubuntu 12.04
-Java 1.7.0_25
-No framework-res.apk

Original issue reported on code.google.com by vinhndk5...@gmail.com on 28 Mar 2014 at 10:10

GoogleCodeExporter commented 9 years ago
Attack File

Original comment by vinhndk5...@gmail.com on 28 Mar 2014 at 10:14

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 29 Mar 2014 at 6:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am also facing same issue. What is the solution? Can someone suggest the 
solution, if any?

Thanks,
Shiva

Original comment by shiva.ne...@gmail.com on 2 Sep 2014 at 12:43