[Android Software Development] jonah1234:
Hi, I've been using this tool for around a year and it always has been working fine. I just recently got this error when trying to compile and apk. Even if I don't edit the apk i just decompile and compile i still get this error. I've switched to the 1.5.2 apktool.jar and aapt and also the aapt from the android sdk and it did not get fixed. If someone can tell me what I am doing wrong that would be great. It's for NOS M7 2.0.3 which is Sense 5 on android 4.1.2. I installed framework-res.apk and com.htc.resources.apk as framework before decompile and compiling again.

Jonah-Goodmans-MacBook-Pro:apktool jonahgoodman$ ./apktool b SystemUI SystemUI-NEW.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/drawable-sw600dp
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/drawable-sw600dp-xhdpi
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/drawable-sw720dp-xhdpi
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/drawable-xxhdpi
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/layout-sw600dp
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/layout-sw720dp
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/values-sw600dp
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/values-sw600dp-land
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/values-sw600dp-port
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/values-sw720dp
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/values-sw720dp-port
invalid resource directory name: /Users/jonahgoodman/apktool/SystemUI/res/values-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, /var/folders/cb/cl7nt5y11jn0lxl7kx8hgpwm0000gn/T/APKTOOL3700844734466702564.tmp, -I, /Users/jonahgoodman/Library/apktool/framework/1.apk, -I, /Users/jonahgoodman/Library/apktool/framework/2.apk, -S, /Users/jonahgoodman/apktool/SystemUI/res, -M, /Users/jonahgoodman/apktool/SystemUI/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)
at brut.androlib.Androlib.buildResources(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:218)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, /var/folders/cb/cl7nt5y11jn0lxl7kx8hgpwm0000gn/T/APKTOOL3700844734466702564.tmp, -I, /Users/jonahgoodman/Library/apktool/framework/1.apk, -I, /Users/jonahgoodman/Library/apktool/framework/2.apk, -S, /Users/jonahgoodman/apktool/SystemUI/res, -M, /Users/jonahgoodman/apktool/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:349)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:335)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, /var/folders/cb/cl7nt5y11jn0lxl7kx8hgpwm0000gn/T/APKTOOL3700844734466702564.tmp, -I, /Users/jonahgoodman/Library/apktool/framework/1.apk, -I, /Users/jonahgoodman/Library/apktool/framework/2.apk, -S, /Users/jonahgoodman/apktool/SystemUI/res, -M, /Users/jonahgoodman/apktool/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:347)
... 6 more
Jonah-Goodmans-MacBook-Pro:apktool jonahgoodman$

Thanks in advance.