[Android Q&A, Help & Troubleshooting] f.alansari:
Error while recompiling whatsapp APK

i was re-compiling an APK , even without modifying it and i keep getting this Error:

03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Using Apktool 2.0.0-Beta9 on 0677E8'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Copying classes.dex file...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Checking whether resources has changed...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: I: Building resources...'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:26: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:25: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:32: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:31: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:42: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:41: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:46: error: Error: No resource found that matches the given name: attr 'android:searchViewEditQuery'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: C:\WINDOWS\TEMP\0677E8\res\values-v19\styles.xml:45: error: Error: No resource found that matches the given name: attr 'android:searchViewVoiceIcon'.'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.buildResources(Androlib.java:363)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.build(Androlib.java:286)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.build(Androlib.java:258)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.apktool.Main.cmdBuild(Main.java:236)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.apktool.Main.main(Main.java:88)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	... 5 more'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.common.BrutException: could not exec command: [C:\WINDOWS\TEMP\brut_util_Jar_3546478640296757729.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 450148, --version-name, 2.11.432, -F, C:\WINDOWS\TEMP\APKTOOL6149196810369000739.tmp, -I, C:\Users\XXXX\apktool\framework\1.apk, -S, C:\WINDOWS\TEMP\0677E8\res, -M, C:\WINDOWS\TEMP\0677E8\AndroidManifest.xml]'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.util.OS.exec(OS.java:89)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)'
03:20:37.120: [Error] - ApkTool.CompileApk: 'ApkTool:	... 6 more'

any and i trace the XML and i found the (android:searchViewEditQuery) & (android:searchViewVoiceIcon) already defined !!

plz help