[Optimus One, P500, V General] fundoozzz:
So the error is this while compiling SystemUI

/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:2: error: Error: No resource found that matches the given name (at 'layout_marginBottom' with value '@dimen/notification_item_divider_height').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/usb_mode_notification').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:7: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/notification_icon_size').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:7: error: Error: No resource found that matches the given name (at 'layout_height' with value '@dimen/notification_icon_size').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:8: error: Error: No resource type specified (at 'textAppearance' with value '@101580807').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:8: error: Error: No resource found that matches the given name (at 'text' with value '@string/usb_mode_notification').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:9: error: Error: No resource found that matches the given name (at 'id' with value '@id/usb_mode_button').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle_list').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:6: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:7: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:8: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:8: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle_list').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:11: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:11: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:12: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:12: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:13: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:13: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:14: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:14: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:16: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle_list').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:17: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:17: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:18: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:18: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:19: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:19: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:20: error: Error: No resource found that matches the given name (at 'id' with value '@id/brightness_toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:20: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:22: error: Error: No resource found that matches the given name (at 'id' with value '@id/manual_brightness_panel').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:24: error: Error: No resource found that matches the given name (at 'id' with value '@id/manual_briException in thread "main" ghtness').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle.xml:2: error: Error: No resource found that matches the given name (at 'id' with value '@id/button_privacy_mode').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_divider.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_divider_lable').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_divider.xml:4: error: Error: No resource found that matches the given name (at 'text' with value '@string/status_bar_toggle_divider_list').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_divider.xml:4: error: Error: No resource found that matches the given name (at 'style' with value '@*miui:style/TextAppearance.ListView.SecondaryItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:2: error: Error: No resource found that matches the given name (at 'style' with value '@*miui:style/ListItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/icon').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/title').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@*miui:style/TextAppearance.ListView.PrimaryItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/drag_handle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_style_compact').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:6: error: Error: No resource type specified (at 'textAppearance' with value '@101580854').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_style_compact_text').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:6: error: Error: No resource found that matches the given name (at 'text' with value '@string/status_bar_toggle_style_compact').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:8: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_style_single_page').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:10: error: Error: No resource type specified (at 'textAppearance' with value '@101580854').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_style_single_page_text').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:10: error: Error: No resource found that matches the given name (at 'text' with value '@string/status_bar_toggle_style_single_page').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:2: error: Error: No resource found that matches the given name (at 'title' with value '@string/status_bar_toggle_settings').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:5: error: Error: No resource found that matches the given name (at 'title' with value '@string/status_bar_toggle_style').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:6: error: Error: No resource found that matches the given name (at 'title' with value '@string/status_bar_toggle_style').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:9: error: Error: No resource found that matches the given name (at 'title' with value '@string/status_bar_toggle_arrangement').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:12: error: Error: No resource found that matches the given name (at 'title' with value '@string/battery_indicator_style').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:13: error: Error: No resource found that matches the given name (at 'title' with value '@string/default_usb_mode').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:14: error: Error: No resource found that matches the given name (at 'title' with value '@string/expandable_under_fullscreen').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:14: error: Error: No resource found that matches the given name (at 'summary' with value '@string/expandable_under_fullscreen_summary').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:15: error: Error: No resource found that matches the given name (at 'title' with value '@string/enable_back_long_press').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/color/tab_lable_color.xml:4: error: Error: No resource found that matches the given name (at 'color' with value '@color/tab_lable_color_p').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/color/tab_lable_color.xml:5: error: Error: No resource found that matches the given name (at 'color' with value '@color/tab_lable_color_p').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/color/tab_lable_color.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@color/tab_lable_color_n').
brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL1354576437632756126.tmp, -I, /root/apktool/framework/1.apk, -S, /home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res, -M, /home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL1354576437632756126.tmp, -I, /root/apktool/framework/1.apk, -S, /home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res, -M, /home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [.build/MIUISystemUI.apk] Error 1

Already referred this

And below i am attaching build folder so if someone can modify it to skip compilation of MIUISystemUI.apk