berkus / android-apktool

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

Recompiling problem with framework-res file #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hy can anybody help for me?

I decomplied a framework-res fille, i mod the styles and colors xml files in 
values, but a coldnt recompile it.

I use XDA auto tool 2.0

The log is here:

-----------------------------------------------------
[*] Processing framework-res folder...
-----------------------------------------------------
Recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: 
brut.common.BrutException: could not exec command: [aapt, p, -F, 
C:\Users\Bezke\AppData\Local\Temp\APKTOOL7030472356232151536.tmp, -x, -S, 
C:\Users\Bezke\Desktop\xdaAutoTool_V2.0.0_Beta\xdaAutoTool\_INPUT_APK\framework-
res\res, -M, 
C:\Users\Bezke\Desktop\xdaAutoTool_V2.0.0_Beta\xdaAutoTool\_INPUT_APK\framework-
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:\Users\Bezke\AppData\Local\Temp\APKTOOL7030472356232151536.tmp, -x, -S, 
C:\Users\Bezke\Desktop\xdaAutoTool_V2.0.0_Beta\xdaAutoTool\_INPUT_APK\framework-
res\res, -M, 
C:\Users\Bezke\Desktop\xdaAutoTool_V2.0.0_Beta\xdaAutoTool\_INPUT_APK\framework-
res\AndroidManifest.xml]
    at brut.util.OS.exec(Unknown Source)
    ... 7 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess 
error=2, A rendszer nem találja a megadott fájlt
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    ... 8 more

Please help me.

Original issue reported on code.google.com by bez...@gmail.com on 29 Oct 2011 at 6:59

GoogleCodeExporter commented 9 years ago
A rendszer nem találja a megadott fájlt - seems you didn't install apktool 
properly: aapt command isn't in your PATH.

Original comment by Brut.alll on 5 Nov 2011 at 11:51