[Android Software Development] bullonwheels:
Error Recompiling SystemUI.apk

I am unable to recompile SystemUI.apk

I used the following:

apktool if framework-res.apk
apktool if twframework-res.apk
apktool if SystemUI.apk

apktool d SystemUI.apk
apktool b SystemUI

Every other command is executing properly, except the last one. For that I'm getting this error:

(Note: I've not even made any changes to the apk.)

I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'abbrev_wday_abbrev_month_day_no_year' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'abbrev_wday_day_abbrev_month_no_year' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'abbrev_wday_month_day_no_year' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'abbrev_wday_month_day_year' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'am' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_long_friday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_long_monday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_long_saturday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_long_sunday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_long_thursday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_long_tuesday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_long_wednesday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_medium_friday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_medium_monday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_medium_saturday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_medium_sunday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_medium_thursday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_medium_tuesday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_medium_wednesday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_short_friday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_short_monday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_short_saturday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_short_sunday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_short_thursday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_short_tuesday' has no default translation inC:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_short_wednesday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_shortest_friday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_shortest_monday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_shortest_saturday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_shortest_sunday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_shortest_thursday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_shortest_tuesday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'day_of_week_shortest_wednesday' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'full_wday_month_day_no_year' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_april' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_august' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_december' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_february' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_january' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_july' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_june' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_march' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_may' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_november' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_october' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_september' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_april' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_august' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_december' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_february' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_january' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_july' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_june' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_march' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_may' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_november' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: string 'month_long_standalone_october' has no default translation in C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res; found: mk
aapt: warning: Exception in thread "main" C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_notification_panel_title.xml:14: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarNotificationText').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_notification_panel_title.xml:19: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarNotificationText').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_notification_panel_title.xml:21: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarNotificationText').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsRow').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:6: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsIcon').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:7: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsContents').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:10: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsPanelSeparator').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:11: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsRow').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:12: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsIcon').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:13: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsContents').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:15: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsPanelSeparator').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:16: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsRow').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:17: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsIcon').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:18: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsContents').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:21: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsPanelSeparator').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:22: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsRow').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:23: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsIcon').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:26: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsPanelSeparator').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:27: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsRow').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:28: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsIcon').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:29: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsContents').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:32: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsPanelSeparator').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:33: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsRow').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:34: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsIcon').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:35: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsContents').
C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res\layout\system_bar_settings_view.xml:37: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarPanelSettingsPanelSeparator').
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Dhruv\AppData\Local\Temp\APKTOOL3122056309805401247.tmp, -0, arsc, -I, C:\Users\Dhruv\apktool\framework\1.apk, -S, C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res, -M, C:\Android\Tools\APK Tool\apktool1.5.2\systemui\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, 16, --target-sdk-version, 16, -F, C:\Users\Dhruv\AppData\Local\Temp\APKTOOL3122056309805401247.tmp, -0, arsc, -I, C:\Users\Dhruv\apktool\framework\1.apk, -S, C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res, -M, C:\Android\Tools\APK Tool\apktool1.5.2\systemui\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, 16, --target-sdk-version, 16, -F, C:\Users\Dhruv\AppData\Local\Temp\APKTOOL3122056309805401247.tmp, -0, arsc, -I, C:\Users\Dhruv\apktool\framework\1.apk, -S, C:\Android\Tools\APK Tool\apktool1.5.2\systemui\res, -M, C:\Android\Tools\APK Tool\apktool1.5.2\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more

I have tried the following:

1. Decompile and Build another apk (SecMmsDS.apk): There were no issues with building it back.

2. Different version of apktool. (1.4.1): Doesn't even decompile

3. Earlier version of aapt (r04): Still gives error

4. APK-Multitool: Same Error

5. apktool d -s systemui.apk: Same Error

What could be the reason?