[Android Software Development] DualJoe:
Whatever apk i throw at the latest versions it crashes when recompiling every time. Anyone know what's wrong?

Win7-32Bit

Java 1.7.0_45

Java 1.8.0_60

java -jar apktool.jar b xposed-installer -o xposed-installer.apk

(no matter what apk - none works)

I: Using Apktool 2.0.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W/ResourceType( 1960): Unable to get buffer of resource asset file
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [d:\Temp\brut_util_Jar_3085924422355915576.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 15, --version-code, 37, --version-name, 3.0 alpha4, -F, d:\Temp\APKTOOL3735624987482498863.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, D:\Android\Decompiler\apktool\xposed-installer\res, -M, D:\Android\Decompiler\apktool\xposed-installer\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
at brut.androlib.Androlib.buildResources(Androlib.java:397)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [d:\Temp\brut_util_Jar_3085924422355915576.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 15, --version-code, 37, --version-name, 3.0 alpha4, -F, d:\Temp\APKTOOL3735624987482498863.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, D:\Android\Decompiler\apktool\xposed-installer\res, -M, D:\Android\Decompiler\apktool\xposed-installer\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:445)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [d:\Temp\brut_util_Jar_3085924422355915576.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 15, --version-code, 37, --version-name, 3.0 alpha4, -F, d:\Temp\APKTOOL3735624987482498863.tmp, -0, arsc, -I, C:\Users\user\apktool\framework\1.apk, -S, D:\Android\Decompiler\apktool\xposed-installer\res, -M, D:\Android\Decompiler\apktool\xposed-installer\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more

Edit: aapt.exe always crashes at 0x4A014E.

Is this a custom compiled aapt? Maybe you recently changed compiler to Visual Studio 2013 or MSVCR120 runtime libs. If so, this might be SSE2 code that doesn't work with AMD SSE1 CPUs. This can be fixed easily in GCC but i don't know about Visual Studio. Maybe you can do something...

004A0148 loc_4A0148:

004A0148 movzx edx, word ptr [eax]

004A014B add eax, 2

004A014E add word ptr [esp+edx*2+40h], 1

004A0154 cmp eax, ecx

004A0156 jnz short loc_4A0148

004A0158 movzx ebx, word ptr [esp+5Eh]

4A014E: The instruction at 0x4A014E referenced memory at 0x12E08D0. The memory could not be written -> 012E08D0 (exc.code c0000005, tid 1396)