[Virtuous Ten Studio] ghostshel:
Did you happen to install your LGSettings.apk as framework reference in apktool? Not sure if that will fix it, but I know a way guarenteed. Copy the resources.arsc from the original LGSettings.apk. Open it up with 7zip, grab the file, copy it to the decompiled dir of your LGSettings.apk in VTS. It should build no problem now.

Here is my log from LS990 stock deodexed.

00:01:24.244: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Assign variable'

00:01:24.244: [Debug] - VariableModule.ExecuteInternal: 'LGSettings -> Assign variable : Creating variable 'TmpImportDir' with value '$(NewTmpPath())''

00:01:24.246: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Unzip file'

00:01:39.353: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Decompile resources'

00:01:53.000: [Normal] - ApkTool.DecompileApk: 'Decompiling apk: 4C79F1.apk'

00:01:53.000: [Debug] - ApkTool.DecompileApk: 'ApkTool args: -Xmx512m -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool\apktool_2.0.0b9.jar" decode --no-src --frame-tag lg3 --force --output "C:\Users\Ghostshell\AppData\Local\Temp\1E68CE" "C:\Users\Ghostshell\AppData\Local\Temp\EE922A\4C79F1.apk"'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Using Apktool 2.0.0-Beta9 on 4C79F1.apk'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Decoding AndroidManifest.xml with resources...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table from file: C:\Users\Ghostshell\apktool\framework\1-lg3.apk'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table from file: C:\Users\Ghostshell\apktool\framework\2-lg3.apk'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: Cleaning up unclosed ZipFile for archive C:\Users\Ghostshell\apktool\framework\1-lg3.apk'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Regular manifest package...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Decoding file-resources...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Decoding values */* XMLs...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Copying raw classes.dex file...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Copying assets and libs...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Copying unknown files/dir...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'ApkTool: I: Copying original files...'

00:02:38.629: [Debug] - ApkTool.DecompileApk: 'Apk decompiled!'

00:02:38.630: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Disassemble dex file'

00:02:38.631: [Normal] - SmaliTool.BakSmali: 'Disassembling file: C:\Users\Ghostshell\AppData\Local\Temp\1E68CE\classes.dex'

00:02:38.632: [Debug] - SmaliTool.BakSmali: 'BakSmali args: -Xmx512m -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\Smali\baksmali-2.0.3.jar" --sequential-labels --api-level 19 --use-locals --output "C:\Users\Ghostshell\AppData\Local\Temp\1E68CE\smali" "C:\Users\Ghostshell\AppData\Local\Temp\1E68CE\classes.dex"'

00:03:11.876: [Debug] - SmaliTool.BakSmali: 'Successfully decompiled file.'

00:03:11.876: [Debug] - BakSmaliModule.ExecuteInternal: 'LGSettings -> Disassemble dex file : Deleting classes.dex'

00:03:11.876: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Backup original binary contents'

00:04:23.652: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Generate Java sources'

00:04:23.662: [Debug] - Dex2Jar.Dex2Jar: 'Dex2Jar args: -Xmx1024m -classpath "C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\jasmin.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dx.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dex-translator.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dex-tools.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dex-reader.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dex-ir.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\commons-lite.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\commons-cli.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\asm-all.jar;" "com.googlecode.dex2jar.tools.Dex2jarCmd" --topological-sort --output "C:\Users\Ghostshell\AppData\Local\Temp\E2F441\41317C.jar" "C:\Users\Ghostshell\Documents\lg\LGSettings.apk"'

00:04:34.165: [Normal] - JadTool.DecompileJar: 'Using JAD for java generation'

00:04:34.166: [Debug] - ZipTool.Unzip: 'Unzipping '41317C.jar' to 'C:\Users\Ghostshell\AppData\Local\Temp\036934''

00:04:34.166: [Debug] - ZipTool.Unzip: 'Deleting old Directory: C:\Users\Ghostshell\AppData\Local\Temp\036934'

00:04:48.831: [Debug] - JadTool.DecompileJar: 'Jad args: -o -s .java -noctor -space -ff -r -d "C:\Users\Ghostshell\Documents\Virtuous Ten Studio\Projects\lg3 stock\LGSettings\Misc\JavaSrc" "C:\Users\Ghostshell\AppData\Local\Temp\036934\**\*.class"'

00:05:17.600: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Cleanup directory'

00:05:17.600: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Copy files'

01:14:58.238: [Normal] - TenProjectViewModel.BuildProject: 'Building project: LGSettings'

01:14:58.255: [Debug] - Script.ExecuteScript: 'Got 9 modules to execute'

01:14:58.255: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Assign variable'

01:14:58.255: [Debug] - VariableModule.ExecuteInternal: 'LGSettings -> Assign variable : Creating variable 'TmpBuildDir' with value '$(NewTmpPath())''

01:14:58.260: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Copy files'

01:15:03.234: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Assemble smali files'

01:15:03.236: [Normal] - SmaliTool.Smali: 'Compiling folder: C:\Users\Ghostshell\AppData\Local\Temp\A60BE2\smali'

01:15:03.237: [Debug] - SmaliTool.Smali: 'Smali args: -Xmx512m -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\Smali\smali-2.0.3.jar" --api-level 19 --output "C:\Users\Ghostshell\AppData\Local\Temp\A60BE2\classes.dex" "C:\Users\Ghostshell\AppData\Local\Temp\A60BE2\smali"'

01:15:10.878: [Debug] - SmaliTool.Smali: 'Successfully compiled file.'

01:15:12.006: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Compile resources'

01:15:12.251: [Normal] - ApkTool.CompileApk: 'Compiling apk, path: C:\Users\Ghostshell\AppData\Local\Temp\A60BE2'

01:15:12.253: [Debug] - ApkTool.CompileApk: 'ApkTool args: -Xmx512m -jar "C:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool\apktool_2.0.0b9.jar" build --output "C:\Users\Ghostshell\AppData\Local\Temp\8260ED\2D119F.tmp" "C:\Users\Ghostshell\AppData\Local\Temp\A60BE2"'

01:15:49.894: [Debug] - ApkTool.CompileApk: 'ApkTool: I: Using Apktool 2.0.0-Beta9 on A60BE2'

01:15:49.894: [Debug] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'

01:15:49.894: [Debug] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'

01:15:49.894: [Debug] - ApkTool.CompileApk: 'ApkTool: I: Copying raw resources...'

01:15:49.894: [Debug] - ApkTool.CompileApk: 'ApkTool: I: Building apk file...'

01:15:49.894: [Debug] - ApkTool.CompileApk: 'ApkTool: I: Copying unknown files/dir...'

01:15:49.894: [Debug] - ApkTool.CompileApk: 'Apk compiled!'

01:15:56.843: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Assign variable'

01:15:56.843: [Debug] - VariableModule.ExecuteInternal: 'LGSettings -> Assign variable : Creating variable 'BinaryFilePath' with value '$(BinaryDirectory)\$(BinaryName)''

01:15:56.843: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Zip data'

01:15:56.844: [Debug] - ZipModule.ExecuteInternal: 'LGSettings -> Zip data : Using compression level: 0'

01:15:59.838: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Sign file'

01:15:59.841: [Normal] - SignModule.ExecuteInternal: 'LGSettings -> Sign file : Signing with old signature'

01:15:59.841: [Normal] - SignModule.ExecuteInternal: 'LGSettings -> Sign file : Changes to AndroidManifest.xml will be discarded!'

01:16:00.098: [Normal] - BaseModule.Execute: 'Executing: LGSettings -> Zipalign binary'

01:16:00.100: [Normal] - ZipalignTool.Zipalign: 'Zipaligning file: C:\Users\Ghostshell\Documents\Virtuous Ten Studio\Projects\lg3 stock\LGSettings\Binary\LGSettings.apk'

01:16:00.234: [Debug] - ZipalignTool.Zipalign: 'ZipalignTool args: -v 4 "C:\Users\Ghostshell\Documents\Virtuous Ten Studio\Projects\lg3 stock\LGSettings\Binary\LGSettings.apk.bak" "C:\Users\Ghostshell\Documents\Virtuous Ten Studio\Projects\lg3 stock\LGSettings\Binary\LGSettings.apk"'

01:16:00.520: [Debug] - ZipalignTool.Zipalign: 'Deleting backup-file...'

01:16:00.532: [Debug] - ZipalignTool.Zipalign: 'Successfully zipaligned: C:\Users\Ghostshell\Documents\Virtuous Ten Studio\Projects\lg3 stock\LGSettings\Binary\LGSettings.apk'

:victory: