[HTC One X] Dunc001:
Help required - I am wrestling with getting framework-res from ViperX to recompile. I am using Virtuous Ten Studio, and I have tried four or five different apktool versions including the one in this thread (I've been using this one since you posted it without problem). All I have done is changed color codes in a few xmls (for notification text colours). I have added in all of the modified xmls as per the first post, including plurals in all languages. But it won't recompile. This is the log and as far as I can see there are no specific errors, just the aapt fail. Any ideas?

17:13:17.343: [Normal] - <BuildProject>d__10.MoveNext: 'Building project: framework-res'
17:13:17.343: [Normal] - ApkTool.CompileApk: 'Compiling apk'
17:13:17.343: [Debug] - FileSystem.GetJavaInstallationPath: 'Searching for java.exe'
17:13:17.343: [Debug] - FileSystem.GetJavaInstallationPath: 'Using registry path: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment'
17:13:17.343: [Debug] - FileSystem.GetJavaInstallationPath: 'Current version: 1.7'
17:13:17.343: [Debug] - FileSystem.GetJavaInstallationPath: 'Subkey: 1.7'
17:13:17.343: [Debug] - FileSystem.GetJavaInstallationPath: 'Subkey: 1.7.0_04'
17:13:17.343: [Debug] - FileSystem.GetJavaInstallationPath: 'Using subkey: 1.7'
17:13:17.343: [Debug] - FileSystem.GetJavaInstallationPath: 'Found java path: C:\Program Files\Java\jre7\bin\java.exe'
17:13:17.343: [Debug] - ApkTool.CompileApk: 'ApkTool args: -jar "C:\vts\External\ApkTool\apktool_sarj.jar" b "C:\Documents and Settings\User\My Documents\Virtuous Ten Studio\Projects\SystemUI_Text_Colours\framework-res\Data" "C:\Documents and Settings\User\My Documents\Virtuous Ten Studio\Projects\SystemUI_Text_Colours\framework-res\Binary\framework-res.apk"'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool: W: Could not find sources'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\User\LOCALS~1\Temp\APKTOOL5630924807674580274.tmp, -x, -S, C:\Documents and Settings\User\My Documents\Virtuous Ten Studio\Projects\SystemUI_Text_Colours\framework-res\Data\res, -M, C:\Documents and Settings\User\My Documents\Virtuous Ten Studio\Projects\SystemUI_Text_Colours\framework-res\Data\AndroidManifest.xml]'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.buildResources(Androlib.java:248)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.build(Androlib.java:171)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.build(Androlib.java:154)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.apktool.Main.cmdBuild(Main.java:182)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.apktool.Main.main(Main.java:67)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\User\LOCALS~1\Temp\APKTOOL5630924807674580274.tmp, -x, -S, C:\Documents and Settings\User\My Documents\Virtuous Ten Studio\Projects\SystemUI_Text_Colours\framework-res\Data\res, -M, C:\Documents and Settings\User\My Documents\Virtuous Ten Studio\Projects\SystemUI_Text_Colours\framework-res\Data\AndroidManifest.xml]'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.util.OS.exec(OS.java:83)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)'
17:14:07.765: [Error] - ApkTool.CompileApk: 'ApkTool:	... 6 more'
17:14:07.765: [Debug] - ApkTool.CompileApk: 'ApkTool failed, see log for further details'
17:14:07.765: [Debug] - ApkTool.CompileApk: 'Exitcode: 1'
17:14:07.765: [Error] - <>c__DisplayClass15.<BuildApkAsync>b__14: 'Apktool failed while compiling apk!'
17:14:07.765: [Error] - <>c__DisplayClass15.<BuildApkAsync>b__14: 'ApkTool failed, see log for further details'