Closed GoogleCodeExporter closed 9 years ago
I got the same error.
The slash in the resource directory name should be "\" instead of "/".
Original comment by jayxon
on 9 Jan 2012 at 2:59
Hi, thank you very much for your answer. I'm working on Windows XP, how could i
change / in the directory. Is there a command in MS-DOS? Should i use an other
OS?
Thank in advance
Original comment by adresse....@gmail.com
on 9 Jan 2012 at 7:30
[deleted comment]
According to Issue 277 comment 17, I replaced aapt.exe, and it worked. You can
have a try.
Original comment by jayxon
on 9 Jan 2012 at 11:02
Thank you very much I just replaced aapt.exe from news version of SDK android
and it worked! Thank you very much
Original comment by adresse....@gmail.com
on 11 Jan 2012 at 1:12
As was said, "aapt was out of date"
Original comment by connor.tumbleson
on 17 Nov 2012 at 6:45
help me i have same issue when i compliling
i'm installed java and framework-res.apk
i can decompli file .apk but can't recompli
[QUOTE]
Easy Apk Disassembler by:
___ ____ _ _ _
/ _ \| _ \(_) ___ | \ | |
| | | | |_) | |/ _ \| \| |
| |_| | _ | | (_) | |\ |
\___/|_| \_\_|\___/|_| \_|
(0) Apktool Dissasembly
(1) Apktool Assembly AND Sign it
(2) DISASSEMBLY a classes.dex with smali
(3) ASSEMBLY a classes.dex with baksmali
(4) Sign an APK
(5) Convert an Xml Binairy to Xml
(6) Launch CMD
(7) Launch Notepad++
(8) About
(9) EXIT
Please enter the number of your choice: 1
Enter the name of the folder to assembly (ex: dis_Name.apk) : dis_commod.apk
FICHIER
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\documents\ANDROID\tool mod android\easy apk\
dis_commod.apk\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp
\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework
\1.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -
M, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\AndroidManifest
.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 18, -F, C:\
Users\Finish\AppData\Local\Temp\APKTOOL2014611683841755200.tmp, -0, arsc, -I, C:
\Users\Finish\apktool\framework\1.apk, -S, D:\documents\ANDROID\tool mod android
\easy apk\dis_commod.apk\res, -M, D:\documents\ANDROID\tool mod android\easy apk
\dis_commod.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 9, --target-sdk-version, 18, -F, C:\Users\Finish\AppData\Local\Temp\A
PKTOOL2014611683841755200.tmp, -0, arsc, -I, C:\Users\Finish\apktool\framework\1
.apk, -S, D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\res, -M,
D:\documents\ANDROID\tool mod android\easy apk\dis_commod.apk\AndroidManifest.x
ml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
java.io.FileNotFoundException: dis_commod.apk\dist\commod.apk (The system cannot
find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:320)
Press any key to continue . . .[/QUOTE]
Original comment by vina.boy...@gmail.com
on 25 Apr 2014 at 5:25
Original issue reported on code.google.com by
adresse....@gmail.com
on 6 Jan 2012 at 3:30Attachments: