[Samsung Epic 4G Touch] 12MaNy:
Man....I'm just stuck in a hole. I've been trying to get this script to work for the last 2 days. My JDK & SDK are both current, my environment variable paths are correct and I'm using the correct resource files when I try to decompile/recompile. I haven't modded anything yet, but I'm getting these errors....

When I try to decompile/recompile framework-res.apk (GS4 4.2.2), I get this error:

error: device not found
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
error: device not found
error: device not found
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
error: device not found
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/anim-sw360dp-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/color-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-land-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-ldrtl-hdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-sw360dp-hdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-sw360dp-land-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-sw360dp-w598dp-hdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-sw360dp-w640dp-hdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-sw360dp-w640dp-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-sw360dp-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/drawable-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/layout-sw360dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/layout-sw360dp-hdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/layout-sw360dp-w598dp-hdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/layout-sw360dp-w640dp-hdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/layout-sw360dp-w640dp-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/layout-sw360dp-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/layout-w600dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/mipmap-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-h720dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-sw360dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-sw360dp-hdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-sw360dp-xxhdpi
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-w360dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-w480dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-w500dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-w600dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\res/values-w720dp
invalid resource directory name: C:\AIOMod\projects\framework-res.apk\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, 17, --target-sdk-version, 17, -F, C:\Users\Jason\AppData\Local\Temp\APKTOOL5292370472529347449.tmp, -x, -0, arsc, -S, C:\AIOMod\projects\framework-res.apk\res, -M, C:\AIOMod\projects\framework-res.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, 17, --target-sdk-version, 17, -F, C:\Users\Jason\AppData\Local\Temp\APKTOOL5292370472529347449.tmp, -x, -0, arsc, -S, C:\AIOMod\projects\framework-res.apk\res, -M, C:\AIOMod\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Jason\AppData\Local\Temp\APKTOOL5292370472529347449.tmp, -x, -0, arsc, -S, C:\AIOMod\projects\framework-res.apk\res, -M, C:\AIOMod\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
The filename, directory name, or volume label syntax is incorrect.
error: device not found
error: device not found
error: device not found

System apps decompile fine but when I try to recompile, I get this error:

error: device not found
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
error: device not found
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Jason\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
error: device not found
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AIOMod\projects\SystemUI.apk\res/drawable-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Jason\AppData\Local\Temp\APKTOOL3027808112888177571.tmp, -I, C:\Users\Jason\apktool\framework\1.apk, -S, C:\AIOMod\projects\SystemUI.apk\res, -M, C:\AIOMod\projects\SystemUI.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, 17, --target-sdk-version, 17, -F, C:\Users\Jason\AppData\Local\Temp\APKTOOL3027808112888177571.tmp, -I, C:\Users\Jason\apktool\framework\1.apk, -S, C:\AIOMod\projects\SystemUI.apk\res, -M, C:\AIOMod\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Jason\AppData\Local\Temp\APKTOOL3027808112888177571.tmp, -I, C:\Users\Jason\apktool\framework\1.apk, -S, C:\AIOMod\projects\SystemUI.apk\res, -M, C:\AIOMod\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
The filename, directory name, or volume label syntax is incorrect.
error: device not found
error: device not found
error: device not found