[Android Q&A, Help & Troubleshooting] Shrewdy:
Hi,

I am trying to create a theme for the ArchiPort 4.4.2 KitKat rom for Galaxy S3 I9300 ...

I am using the apktool 1.5.2 to compile/decompile apks...

I have installed the necessary frameworks and i am able to decompile all the necessary apk files.... i am even able to recompile SystemUI.apk ...

But when i try to compile framework-res ... apktool throws me an error. ...

I thought that may be the changes i did are the culprit ... but then i simply decompiled the framework-res.apk and tried to recompile it again (without doing any change what so ever) and apktool still throws me an error. ...

D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6037: error: Public symbol string/voice_control_alarm_command_1 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6038: error: Public symbol string/voice_control_alarm_command_2 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6027: error: Public symbol string/voice_control_alarm_summary declared he
re is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6035: error: Public symbol string/voice_control_call_command_1 declared h
ere is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6036: error: Public symbol string/voice_control_call_command_2 declared h
ere is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6039: error: Public symbol string/voice_control_camera_command_1 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6048: error: Public symbol string/voice_control_camera_command_10 declare
d here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6049: error: Public symbol string/voice_control_camera_command_11 declare
d here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6040: error: Public symbol string/voice_control_camera_command_2 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6041: error: Public symbol string/voice_control_camera_command_3 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6042: error: Public symbol string/voice_control_camera_command_4 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6043: error: Public symbol string/voice_control_camera_command_5 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6044: error: Public symbol string/voice_control_camera_command_6 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6045: error: Public symbol string/voice_control_camera_command_7 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6046: error: Public symbol string/voice_control_camera_command_8 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6047: error: Public symbol string/voice_control_camera_command_9 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6028: error: Public symbol string/voice_control_camera_summary declared h
ere is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6026: error: Public symbol string/voice_control_incomming_calls_summary d
eclared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6050: error: Public symbol string/voice_control_music_command_1 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6051: error: Public symbol string/voice_control_music_command_2 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6052: error: Public symbol string/voice_control_music_command_3 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6053: error: Public symbol string/voice_control_music_command_4 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6054: error: Public symbol string/voice_control_music_command_5 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6055: error: Public symbol string/voice_control_music_command_6 declared
here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6201: error: Public entry identifier 0x1040b6f entry index is larger than
available symbols (index 2927, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6201: error: Public symbol string/webview_translate declared here is not
defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6205: error: Public entry identifier 0x1040b73 entry index is larger than
available symbols (index 2931, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6205: error: Public symbol string/webviewchromium_accessibility_content_v
iew declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6214: error: Public entry identifier 0x1040b7c entry index is larger than
available symbols (index 2940, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6214: error: Public symbol string/webviewchromium_accessibility_date_pick
er_month declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6215: error: Public entry identifier 0x1040b7d entry index is larger than
available symbols (index 2941, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6215: error: Public symbol string/webviewchromium_accessibility_date_pick
er_week declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6216: error: Public entry identifier 0x1040b7e entry index is larger than
available symbols (index 2942, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6216: error: Public symbol string/webviewchromium_accessibility_date_pick
er_year declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6212: error: Public entry identifier 0x1040b7a entry index is larger than
available symbols (index 2938, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6212: error: Public symbol string/webviewchromium_accessibility_datetime_
picker_date declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6213: error: Public entry identifier 0x1040b7b entry index is larger than
available symbols (index 2939, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6213: error: Public symbol string/webviewchromium_accessibility_datetime_
picker_time declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6203: error: Public entry identifier 0x1040b71 entry index is larger than
available symbols (index 2929, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6203: error: Public symbol string/webviewchromium_actionbar_share declare
d here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6204: error: Public entry identifier 0x1040b72 entry index is larger than
available symbols (index 2930, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6204: error: Public symbol string/webviewchromium_actionbar_web_search de
clared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6227: error: Public entry identifier 0x1040b89 entry index is larger than
available symbols (index 2953, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6227: error: Public symbol string/webviewchromium_color_picker_button_can
cel declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6222: error: Public entry identifier 0x1040b84 entry index is larger than
available symbols (index 2948, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6222: error: Public symbol string/webviewchromium_color_picker_button_mor
e declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6226: error: Public entry identifier 0x1040b88 entry index is larger than
available symbols (index 2952, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6226: error: Public symbol string/Exception in thread "main" webviewchrom
ium_color_picker_button_set declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6228: error: Public entry identifier 0x1040b8a entry index is larger than
available symbols (index 2954, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6228: error: Public symbol string/webviewchromium_color_picker_dialog_tit
le declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6223: error: Public entry identifier 0x1040b85 entry index is larger than
available symbols (index 2949, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6223: error: Public symbol string/webviewchromium_color_picker_hue declar
ed here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6224: error: Public entry identifier 0x1040b86 entry index is larger than
available symbols (index 2950, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6224: error: Public symbol string/webviewchromium_color_picker_saturation
declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6225: error: Public entry identifier 0x1040b87 entry index is larger than
available symbols (index 2951, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6225: error: Public symbol string/webviewchromium_color_picker_value decl
ared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6207: error: Public entry identifier 0x1040b75 entry index is larger than
available symbols (index 2933, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6207: error: Public symbol string/webviewchromium_date_picker_dialog_clea
r declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6206: error: Public entry identifier 0x1040b74 entry index is larger than
available symbols (index 2932, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6206: error: Public symbol string/webviewchromium_date_picker_dialog_set
declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6208: error: Public entry identifier 0x1040b76 entry index is larger than
available symbols (index 2934, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6208: error: Public symbol string/webviewchromium_date_picker_dialog_titl
e declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6209: error: Public entry identifier 0x1040b77 entry index is larger than
available symbols (index 2935, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6209: error: Public symbol string/webviewchromium_date_time_picker_dialog
_title declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6229: error: Public entry identifier 0x1040b8b entry index is larger than
available symbols (index 2955, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6229: error: Public symbol string/webviewchromium_low_memory_error declar
ed here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6220: error: Public entry identifier 0x1040b82 entry index is larger than
available symbols (index 2946, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6220: error: Public symbol string/webviewchromium_media_player_error_butt
on declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6218: error: Public entry identifier 0x1040b80 entry index is larger than
available symbols (index 2944, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6218: error: Public symbol string/webviewchromium_media_player_error_text
_invalid_progressive_playback declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6219: error: Public entry identifier 0x1040b81 entry index is larger than
available symbols (index 2945, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6219: error: Public symbol string/webviewchromium_media_player_error_text
_unknown declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6217: error: Public entry identifier 0x1040b7f entry index is larger than
available symbols (index 2943, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6217: error: Public symbol string/webviewchromium_media_player_error_titl
e declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6221: error: Public entry identifier 0x1040b83 entry index is larger than
available symbols (index 2947, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6221: error: Public symbol string/webviewchromium_media_player_loading_vi
deo declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6210: error: Public entry identifier 0x1040b78 entry index is larger than
available symbols (index 2936, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6210: error: Public symbol string/webviewchromium_month_picker_dialog_tit
le declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6230: error: Public entry identifier 0x1040b8c entry index is larger than
available symbols (index 2956, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6230: error: Public symbol string/webviewchromium_opening_file_error decl
ared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6231: error: Public entry identifier 0x1040b8d entry index is larger than
available symbols (index 2957, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6231: error: Public symbol string/webviewchromium_private_browsing_warnin
g declared here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6211: error: Public entry identifier 0x1040b79 entry index is larger than
available symbols (index 2937, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6234: error: Public entry identifier 0x1040b11 entry index is larger than
available symbols (index 2833, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6234: error: Public symbol string/wifi_display_notification_message decla
red here is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6233: error: Public entry identifier 0x1040b10 entry index is larger than
available symbols (index 2832, total symbols 2795).
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:6233: error: Public symbol string/wifi_display_notification_title declare
d here brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --t
arget-sdk-version, 19, -F, C:\Users\288304\AppData\Local\Temp\APKTOOL37319.tmp, -x, -0, arsc, -S, D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-r
es\res, -M, D:\.\framework-res\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, 19, --target-sdk-version, 19, -F, C:
\Users\288304\AppData\Local\Temp\APKTOOL37319.tmp, -x, -0, arsc, -S, D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res, -M, D:\WorkingDirecto
ry\Android\ThemeKitchen\shrewroid\framework-res\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, 19, --target-sdk-version, 19, -F, C:\Users\288304\AppData\Local\Temp\
APKTOOL37319.tmp, -x, -0, arsc, -S, D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res, -M, D:\WorkingDirectory\Android\ThemeKitchen\shrewroid
\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
is not defined.
D:\WorkingDirectory\Android\ThemeKitchen\shrewroid\framework-res\res\values\public.xml:5524: error: Public symbol string/zzz_tts_lockscreen_missed_swipe declare
d here is not defined.

can someone please give me a hint for this ... ??