ads

lundi 21 septembre 2015

[ASK] APKTOOL Recompiling Error



I'm using APKTool to modify AndroidManifest.xml of an APK. I've installed framework-res.apk. The decompile is success, after I'm changed some line on the manifest then rebuilding, the error happened. Even if I didn't make any changes, rebuild is still error.


Code:


C:\ApkTool>apktool b flappymod flappymod.apk
I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\Risal\AppData\Local\Temp\APKTOOL5476941189381566523.tmp, -I, C:\Users\Risal\apktool\framework.apk, -S, C:\ApkTool\flappymod\res, -M, C:\ApkTool\flappymod\AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
    at brut.androlib.Androlib.buildResources(Androlib.java:269)
    at brut.androlib.Androlib.build(Androlib.java:192)
    at brut.androlib.Androlib.build(Androlib.java:174)
    at brut.apktool.Main.cmdBuild(Main.java:188)
    at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, --target-sdk-version, 15, -F, C:\Users\Risal\AppData\Local\Temp\APKTOOL5476941189381566523.tmp, -I, C:\Users\Risal\apktool\framework.apk, -S, C:\ApkTool\flappymod\res, -M, C:\ApkTool\flappymod\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:87)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
    ... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at brut.util.OS.exec(OS.java:78)
    ... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 11 more


How to fix this ?? :rolleyes:



Aucun commentaire:

Enregistrer un commentaire