broo2s / brut.apktool

A tool for reverse engineering Android apk files
http://code.google.com/p/android-apktool/
353 stars 118 forks source link

can not compile .apk #19

Open afan10 opened 12 years ago

afan10 commented 12 years ago

i am using apk Multi-tools v.1.0.2, and i can't compiling any apk with this tools.

this my log :

11/04/2012 -- 20:04:24,81

--2012-04-11 20:04:25-- http://update.apkmultitool.com/apkver.txt Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20 Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 152 [text/plain] Saving to: `apkver.txt'

 0K                                                       100% 2,42M=0s

2012-04-11 20:04:26 (2,42 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists. A subdirectory or file place-apk-here-for-modding already exists. A subdirectory or file place-ogg-here already exists. A subdirectory or file place-apk-here-to-batch-optimize already exists. A subdirectory or file place-apk-here-for-signing already exists. java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.031-b05) Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) '""platform-tools"\adb.exe"' is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified. The system cannot find the path specified. I: Baksmaling... I: Loading resource table... I: Loaded. I: Loading resource table from file: C:\Users\AFan10\apktool\framework\1.apk I: Loaded. I: Decoding file-resources... I: Decoding values/_ XMLs... I: Done. I: Copying assets and libs... I: Checking whether sources has changed... I: Smaling... 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, -F, C:\Users\AFan10\AppData\Local\Temp\APKTOOL8442704672734560504.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\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\AFan10\AppData\Local\Temp\APKTOOL8442704672734560504.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml] at brut.util.OS.exec(OS.java:87) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191) ... 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.(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source)

... 11 more

11/04/2012 -- 20:10:21,18

--2012-04-11 20:10:21-- http://update.apkmultitool.com/apkver.txt Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20 Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 152 [text/plain] Saving to: `apkver.txt'

 0K                                                       100% 2,52M=0s

2012-04-11 20:10:24 (2,52 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists. A subdirectory or file place-apk-here-for-modding already exists. A subdirectory or file place-ogg-here already exists. A subdirectory or file place-apk-here-to-batch-optimize already exists. A subdirectory or file place-apk-here-for-signing already exists. java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b05) Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) '""platform-tools"\adb.exe"' is not recognized as an internal or external command, operable program or batch file. I: Checking whether sources has changed... 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, -F, C:\Users\AFan10\AppData\Local\Temp\APKTOOL1873634948308619802.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\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\AFan10\AppData\Local\Temp\APKTOOL1873634948308619802.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml] at brut.util.OS.exec(OS.java:87) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191) ... 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.(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source)

... 11 more

11/04/2012 -- 20:11:33,71

--2012-04-11 20:11:33-- http://update.apkmultitool.com/apkver.txt Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20 Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 152 [text/plain] Saving to: `apkver.txt'

 0K                                                       100% 2,58M=0s

2012-04-11 20:11:37 (2,58 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists. A subdirectory or file place-apk-here-for-modding already exists. A subdirectory or file place-ogg-here already exists. A subdirectory or file place-apk-here-to-batch-optimize already exists. A subdirectory or file place-apk-here-for-signing already exists. java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.031-b05) Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) '""platform-tools"\adb.exe"' is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified. The system cannot find the path specified. I: Baksmaling... I: Loading resource table... I: Loaded. I: Loading resource table from file: C:\Users\AFan10\apktool\framework\1.apk I: Loaded. I: Decoding file-resources... I: Decoding values/_ XMLs... I: Done. I: Copying assets and libs... I: Checking whether sources has changed... I: Smaling... 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, -F, C:\Users\AFan10\AppData\Local\Temp\APKTOOL1780028430672962525.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\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\AFan10\AppData\Local\Temp\APKTOOL1780028430672962525.tmp, -I, C:\Users\AFan10\apktool\framework\1.apk, -S, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\res, -M, C:\Users\AFan10\Desktop\apk manager\projects\SystemUI.apk\AndroidManifest.xml] at brut.util.OS.exec(OS.java:87) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191) ... 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.(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 11 more