[Android] Nasty_z:
I'm compiling cyanogenmod for Galaxy S4 GT-I9500. It doesn't have an official release yet but I'm using the developer's device tree, proprietary and vendor folders. As well as kernel.

I receive this error everytime with every apk. So I did mka -i bacon which ignored errors and continued building, this is how I found out that every apk is affected.

packages/apps/Calendar/res/values/styles.xml:118: error: Error: No resource found that matches the given name: attr 'android:layout_marginLeft'.

packages/apps/Calendar/res/values/styles.xml:117: error: Error: No resource found that matches the given name: attr 'android:layout_marginRight'.

packages/apps/Calendar/res/values/styles.xml:122: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.

packages/apps/Calendar/res/values/styles.xml:124: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/res/values/styles.xml:123: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:128: error: Error: No resource found that matches the given name: attr 'android:paddingLeft'.

packages/apps/Calendar/res/values/styles.xml:129: error: Error: No resource found that matches the given name: attr 'android:paddingRight'.

packages/apps/Calendar/res/values/styles.xml:132: error: Error retrieving parent for item: No resource found that matches the given name 'android:style/Widget.Holo.Light.Spinner'.

packages/apps/Calendar/res/values/styles.xml:136: error: Error: No resource found that matches the given name: attr 'android:layout_marginLeft'.

packages/apps/Calendar/res/values/styles.xml:135: error: Error: No resource found that matches the given name: attr 'android:layout_marginRight'.

packages/apps/Calendar/res/values/styles.xml:134: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/res/values/styles.xml:133: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:140: error: Error: No resource found that matches the given name: attr 'android:paddingLeft'.

packages/apps/Calendar/res/values/styles.xml:141: error: Error: No resource found that matches the given name: attr 'android:paddingRight'.

packages/apps/Calendar/res/values/styles.xml:148: error: Error: No resource found that matches the given name: attr 'android:paddingRight'.

packages/apps/Calendar/res/values/styles.xml:149: error: Error: No resource found that matches the given name: attr 'android:singleLine'.

packages/apps/Calendar/res/values/styles.xml:145: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.

packages/apps/Calendar/res/values/styles.xml:147: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/res/values/styles.xml:146: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:155: error: Error: No resource found that matches the given name: attr 'android:paddingLeft'.

packages/apps/Calendar/res/values/styles.xml:153: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.

packages/apps/Calendar/res/values/styles.xml:154: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:158: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.

packages/apps/Calendar/res/values/styles.xml:163: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/res/values/styles.xml:162: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:166: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.

packages/apps/Calendar/res/values/styles.xml:167: error: Error: No resource found that matches the given name: attr 'android:windowContentOverlay'.

packages/apps/Calendar/res/values/styles.xml:170: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.

packages/apps/Calendar/res/values/styles.xml:174: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'.

packages/apps/Calendar/res/values/styles.xml:175: error: Error: No resource found that matches the given name: attr 'android:endYear'.

packages/apps/Calendar/res/values/styles.xml:176: error: Error: No resource found that matches the given name: attr 'android:startYear'.

packages/apps/Calendar/res/values/styles.xml:172: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.

packages/apps/Calendar/res/values/styles.xml:173: error: Error: No resource found that matches the given name: attr 'android:windowBackground'.

packages/apps/Calendar/res/values/styles.xml:171: error: Error: No resource found that matches the given name: attr 'android:windowNoTitle'.

packages/apps/Calendar/res/values/styles.xml:179: error: Error retrieving parent for item: No resource found that matches the given name 'android:style/Widget.Holo.Light.ActionBar.Solid'.

packages/apps/Calendar/res/values/styles.xml:180: error: Error: No resource found that matches the given name: attr 'android:displayOptions'.

packages/apps/Calendar/res/values/styles.xml:185: error: Error: No resource found that matches the given name: attr 'android:colorBackgroundCacheHint'.

packages/apps/Calendar/res/values/styles.xml:184: error: Error: No resource found that matches the given name: attr 'android:windowBackground'.

packages/apps/Calendar/res/values/styles.xml:186: error: Error: No resource found that matches the given name: attr 'android:windowShowWallpaper'.

packages/apps/Calendar/res/values/styles.xml:191: error: Error: No resource found that matches the given name: attr 'android:clickable'.

packages/apps/Calendar/res/values/styles.xml:190: error: Error: No resource found that matches the given name: attr 'android:focusable'.

packages/apps/Calendar/res/values/styles.xml:193: error: Error: No resource found that matches the given name: attr 'android:gravity'.

packages/apps/Calendar/res/values/styles.xml:192: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.

packages/apps/Calendar/res/values/styles.xml:201: error: Error: No resource found that matches the given name: attr 'android:background'.

packages/apps/Calendar/res/values/styles.xml:197: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/res/values/styles.xml:200: error: Error: No resource found that matches the given name: attr 'android:layout_marginBottom'.

packages/apps/Calendar/res/values/styles.xml:199: error: Error: No resource found that matches the given name: attr 'android:layout_marginTop'.

packages/apps/Calendar/res/values/styles.xml:198: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/res/values/styles.xml:202: error: Error: No resource found that matches the given name: attr 'android:visibility'.

packages/apps/Calendar/res/values/styles.xml:205: error: Error retrieving parent for item: No resource found that matches the given name 'android:style/Widget.Holo.Light.ActionButton'.

packages/apps/Calendar/res/values/styles.xml:209: error: Error: No resource found that matches the given name: attr 'android:focusable'.

packages/apps/Calendar/res/values/styles.xml:206: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/res/values/styles.xml:208: error: Error: No resource found that matches the given name: attr 'android:layout_weight'.

packages/apps/Calendar/res/values/styles.xml:207: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/res/values/styles.xml:210: error: Error: No resource found that matches the given name: attr 'android:orientation'.

packages/apps/Calendar/res/values/styles.xml:214: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/res/values/styles.xml:215: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/res/values/styles.xml:216: error: Error: No resource found that matches the given name: attr 'android:padding'.

packages/apps/Calendar/res/values/styles.xml:226: error: Error: No resource found that matches the given name: attr 'android:ellipsize'.

packages/apps/Calendar/res/values/styles.xml:220: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/res/values/styles.xml:221: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/res/values/styles.xml:224: error: Error: No resource found that matches the given name: attr 'android:orientation'.

packages/apps/Calendar/res/values/styles.xml:227: error: Error: No resource found that matches the given name: attr 'android:padding'.

packages/apps/Calendar/res/values/styles.xml:225: error: Error: No resource found that matches the given name: attr 'android:singleLine'.

packages/apps/Calendar/res/values/styles.xml:222: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.

packages/apps/Calendar/res/values/styles.xml:223: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/res/values/styles.xml:238: error: Error: No resource found that matches the given name: attr 'android:gravity'.

packages/apps/Calendar/res/values/styles.xml:232: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/res/values/styles.xml:233: error: Error: No resource found that matches the given name: attr 'android:layout_marginBottom'.

packages/apps/Calendar/res/values/styles.xml:231: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/res/values/styles.xml:239: error: Error: No resource found that matches the given name: attr 'android:singleLine'.

packages/apps/Calendar/res/values/styles.xml:235: error: Error: No resource found that matches the given name: attr 'android:textAllCaps'.

packages/apps/Calendar/res/values/styles.xml:234: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:237: error: Error: No resource found that matches the given name: attr 'android:textStyle'.

packages/apps/Calendar/res/values/styles.xml:246: error: Error: No resource found that matches the given name: attr 'android:gravity'.

packages/apps/Calendar/res/values/styles.xml:244: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/res/values/styles.xml:247: error: Error: No resource found that matches the given name: attr 'android:layout_marginTop'.

packages/apps/Calendar/res/values/styles.xml:243: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/res/values/styles.xml:248: error: Error: No resource found that matches the given name: attr 'android:singleLine'.

packages/apps/Calendar/res/values/styles.xml:245: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:251: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Title'.

packages/apps/Calendar/res/values/styles.xml:253: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo'.

packages/apps/Calendar/res/values/styles.xml:254: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/res/values/styles.xml:258: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:261: error: Error retrieving parent for item: No resource found that matches the given name 'android:style/Widget.Holo.Light.Spinner'.

packages/apps/Calendar/res/values/styles.xml:277: error: Error: No resource found that matches the given name: attr 'android:background'.

packages/apps/Calendar/res/values/styles.xml:266: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/res/values/styles.xml:268: error: Error: No resource found that matches the given name: attr 'android:layout_marginBottom'.

packages/apps/Calendar/res/values/styles.xml:269: error: Error: No resource found that matches the given name: attr 'android:layout_marginLeft'.

packages/apps/Calendar/res/values/styles.xml:270: error: Error: No resource found that matches the given name: attr 'android:layout_marginRight'.

packages/apps/Calendar/res/values/styles.xml:267: error: Error: No resource found that matches the given name: attr 'android:layout_marginTop'.

packages/apps/Calendar/res/values/styles.xml:271: error: Error: No resource found that matches the given name: attr 'android:layout_weight'.

packages/apps/Calendar/res/values/styles.xml:265: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/res/values/styles.xml:281: error: Error: No resource found that matches the given name: attr 'android:paddingBottom'.

packages/apps/Calendar/res/values/styles.xml:278: error: Error: No resource found that matches the given name: attr 'android:paddingLeft'.

packages/apps/Calendar/res/values/styles.xml:279: error: Error: No resource found that matches the given name: attr 'android:paddingRight'.

packages/apps/Calendar/res/values/styles.xml:280: error: Error: No resource found that matches the given name: attr 'android:paddingTop'.

packages/apps/Calendar/res/values/styles.xml:276: error: Error: No resource found that matches the given name: attr 'android:singleLine'.

packages/apps/Calendar/res/values/styles.xml:273: error: Error: No resource found that matches the given name: attr 'android:textAllCaps'.

packages/apps/Calendar/res/values/styles.xml:272: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/res/values/styles.xml:274: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/res/values/styles.xml:275: error: Error: No resource found that matches the given name: attr 'android:textStyle'.

packages/apps/Calendar/../../../frameworks/opt/timezonepicker/res/values/styles.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Light'.

packages/apps/Calendar/../../../frameworks/opt/timezonepicker/res/values-v11/styles.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.

packages/apps/Calendar/../../../frameworks/opt/timezonepicker/res/values-v14/styles.xml:23: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.

packages/apps/Calendar/../../../frameworks/opt/timezonepicker/res/values-v16/styles.xml:20: error: Error: No resource found that matches the given name: attr 'android:fontFamily'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values/styles.xml:38: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values/styles.xml:37: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values/styles.xml:43: error: Error: No resource found that matches the given name: attr 'android:textAllCaps'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values/styles.xml:44: error: Error: No resource found that matches the given name: attr 'android:textColor'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values/styles.xml:42: error: Error: No resource found that matches the given name: attr 'android:textSize'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values/styles.xml:45: error: Error: No resource found that matches the given name: attr 'android:textStyle'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values-v16/styles.xml:28: error: Error: No resource found that matches the given name: attr 'android:fontFamily'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values-v16/styles.xml:20: error: Error: No resource found that matches the given name: attr 'android:fontFamily'.

packages/apps/Calendar/../../../frameworks/opt/datetimepicker/res/values-v16/styles.xml:24: error: Error: No resource found that matches the given name: attr 'android:fontFamily'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:17: error: Error retrieving parent for item: No resource found that matches the given name '@android:attr/autoCompleteTextViewStyle'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:21: error: Error: No resource found that matches the given name: attr 'android:background'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:25: error: Error: No resource found that matches the given name: attr 'android:dropDownHorizontalOffset'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:24: error: Error: No resource found that matches the given name: attr 'android:dropDownVerticalOffset'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:19: error: Error: No resource found that matches the given name: attr 'android:imeOptions'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:18: error: Error: No resource found that matches the given name: attr 'android:inputType'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:22: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:23: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:27: error: Error: No resource found that matches the given name: attr 'android:lineSpacingExtra'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:26: error: Error: No resource found that matches the given name: attr 'android:minHeight'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values/styles.xml:20: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:17: error: Error retrieving parent for item: No resource found that matches the given name '@android:attr/autoCompleteTextViewStyle'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:23: error: Error: No resource found that matches the given name: attr 'android:background'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:27: error: Error: No resource found that matches the given name: attr 'android:dropDownHorizontalOffset'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:26: error: Error: No resource found that matches the given name: attr 'android:dropDownVerticalOffset'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:21: error: Error: No resource found that matches the given name: attr 'android:imeOptions'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:20: error: Error: No resource found that matches the given name: attr 'android:inputType'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:24: error: Error: No resource found that matches the given name: attr 'android:layout_height'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:25: error: Error: No resource found that matches the given name: attr 'android:layout_width'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:18: error: Error: No resource found that matches the given name: attr 'android:paddingLeft'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:19: error: Error: No resource found that matches the given name: attr 'android:paddingRight'.

packages/apps/Calendar/../../../frameworks/ex/chips/res/values-sw600dp/styles.xml:22: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.

The final zip when compared to a properly compiled zip has shortcomings in two folders system/app and system/framework. Each having a size of below 1mb. To do a test, i copied over the framework and app folders into my zip from a working cm build but even then the device didn't boot.

Any help is more than appreciated.

Thank you.

EDIT:FIxed it by deleting the entire source and redownloading