sky201503 / android-apktool-1

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

Recompiling doesn't work! #352

Closed GoogleCodeExporter closed 9 years ago

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

What is the expected output? What do you see instead?

I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not write dex
to file: SystemUI\build\apk\classes.dex
        at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:61)
        at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
        at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
        at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
        at brut.androlib.Androlib.buildSources(Androlib.java:179)
        at brut.androlib.Androlib.build(Androlib.java:170)
        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: java.io.FileNotFoundException: SystemUI\build\apk\classes.dex (Odmowa
 dostŕpu)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:57)
        ... 8 more

What version of the product are you using? On what operating system?

Latest apktool on Windows 7

Please provide any additional information below.

I want to recompile Xperia arc S's SystemUI. Decompiling goes well, but 
recompiling doesn't. I get something like above.

Original issue reported on code.google.com by maxio1...@gmail.com on 26 Oct 2012 at 4:24

GoogleCodeExporter commented 9 years ago
I have java on my PCs. BTW, tested on two PCs

Original comment by maxio1...@gmail.com on 26 Oct 2012 at 4:25

GoogleCodeExporter commented 9 years ago
Apktool must be used with deodexed APKs. It cannot find the classes.dex file, 
which means there is probably a corresponding odex file.

Use smali and deodex it. Then apktool will work.

Original comment by connor.tumbleson on 15 Nov 2012 at 12:42

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 17 Nov 2012 at 6:11