[Android Software Development] dragonzkiller:
Hello, I'm trying to build CM7 from source, and I managed to get through most of it until it starts to compile the Apps in "packages/apps."

The errors I'm getting are:

target R.java/Manifest.java: ADWLauncher (out/target/common/obj/APPS/ADWLauncher_intermediates/src/R.stamp)
Install: out/host/linux-x86/bin/dx
target R.java/Manifest.java: AccountAndSyncSettings (out/target/common/obj/APPS/AccountAndSyncSettings_intermediates/src/R.stamp)
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:17: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:17: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:17: error: No resource identifier found for attribute 'minHeight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:17: error: No resource identifier found for attribute 'gravity' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:17: error: No resource identifier found for attribute 'paddingLeft' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:17: error: No resource identifier found for attribute 'paddingRight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:25: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:25: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:25: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:25: error: No resource identifier found for attribute 'layout_marginRight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:25: error: No resource identifier found for attribute 'layout_gravity' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:32: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:32: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:32: error: No resource identifier found for attribute 'layout_marginRight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:32: error: No resource identifier found for attribute 'layout_marginTop' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:32: error: No resource identifier found for attribute 'layout_marginBottom' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:32: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:40: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:40: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:40: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:40: error: No resource identifier found for attribute 'singleLine' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:40: error: No resource identifier found for attribute 'textAppearance' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: No resource identifier found for attribute 'layout_below' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: No resource identifier found for attribute 'layout_alignLeft' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: No resource identifier found for attribute 'textAppearance' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: No resource identifier found for attribute 'maxLines' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:56: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:56: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:56: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:56: error: No resource identifier found for attribute 'layout_marginLeft' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:56: error: No resource identifier found for attribute 'layout_marginRight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:56: error: No resource identifier found for attribute 'layout_gravity' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:17: error: Error: No resource found that matches the given name (at 'minHeight' with value '?android:attr/listPreferredItemHeight').
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:17: error: Error: No resource found that matches the given name (at 'paddingRight' with value '?android:attr/scrollbarSize').
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:40: error: Error: No resource found that matches the given name (at 'id' with value '@+android:id/title').
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:40: error: Error: No resource found that matches the given name (at 'textAppearance' with value '?android:attr/textAppearanceMedium').
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: Error: No resource found that matches the given name (at 'id' with value '@+android:id/summary').
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: Error: No resource found that matches the given name (at 'layout_below' with value '@android:id/title').
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: Error: No resource found that matches the given name (at 'layout_alignLeft' with value '@android:id/title').
packages/apps/AccountsAndSyncSettings/res/layout/account_preference.xml:46: error: Error: No resource found that matches the given name (at 'textAppearance' with value '?android:attr/textAppearanceSmall').
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:20: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:20: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:20: error: No resource identifier found for attribute 'orientation' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:25: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:25: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:29: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:29: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:29: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:29: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:29: error: No resource identifier found for attribute 'drawSelectorOnTop' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:29: error: No resource identifier found for attribute 'scrollbarAlwaysDrawVerticalTrack' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:37: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:37: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:37: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:37: error: No resource identifier found for attribute 'text' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:42: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:42: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:42: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:42: error: No resource identifier found for attribute 'orientation' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:42: error: No resource identifier found for attribute 'background' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:48: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:48: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:48: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:53: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:53: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:53: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:53: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:53: error: No resource identifier found for attribute 'layout_marginTop' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:53: error: No resource identifier found for attribute 'text' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:60: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:60: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:60: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:66: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:66: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:66: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:66: error: No resource identifier found for attribute 'background' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:66: error: No resource identifier found for attribute 'visibility' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:72: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:72: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:72: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:72: error: No resource identifier found for attribute 'layout_margin' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:72: error: No resource identifier found for attribute 'layout_alignParentRight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:72: error: No resource identifier found for attribute 'drawableRight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:72: error: No resource identifier found for attribute 'drawablePadding' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:72: error: No resource identifier found for attribute 'text' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:29: error: Error: No resource found that matches the given name (at 'id' with value '@android:id/list').
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:42: error: Error: No resource found that matches the given name (at 'background' with value '@android:drawable/bottom_bar').
packages/apps/AccountsAndSyncSettings/res/layout/account_sync_screen.xml:66: error: Error: No resource found that matches the given name (at 'background' with value '@android:drawable/bottom_bar').
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:20: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:20: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:20: error: No resource identifier found for attribute 'orientation' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:25: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:25: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:25: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:25: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:25: error: No resource identifier found for attribute 'drawSelectorOnTop' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:25: error: No resource identifier found for attribute 'scrollbarAlwaysDrawVerticalTrack' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/add_account_screen.xml:25: error: Error: No resource found that matches the given name (at 'id' with value '@android:id/list').
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:20: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:20: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:20: error: No resource identifier found for attribute 'orientation' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:25: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:25: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:25: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:25: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:25: error: No resource identifier found for attribute 'drawSelectorOnTop' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:25: error: No resource identifier found for attribute 'scrollbarAlwaysDrawVerticalTrack' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:33: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:33: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:33: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:33: error: No resource identifier found for attribute 'text' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:38: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:38: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:38: error: No resource identifier found for attribute 'orientation' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:38: error: No resource identifier found for attribute 'background' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:44: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:44: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:44: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:49: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:49: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:49: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:49: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:49: error: No resource identifier found for attribute 'layout_marginTop' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:49: error: No resource identifier found for attribute 'text' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:56: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:56: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:56: error: No resource identifier found for attribute 'layout_weight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:25: error: Error: No resource found that matches the given name (at 'id' with value '@android:id/list').
packages/apps/AccountsAndSyncSettings/res/layout/manage_accounts_screen.xml:38: error: Error: No resource found that matches the given name (at 'background' with value '@android:drawable/bottom_bar').
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:19: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:19: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:19: error: No resource identifier found for attribute 'gravity' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:24: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:24: error: No resource identifier found for attribute 'src' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:24: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:24: error: No resource identifier found for attribute 'layout_marginLeft' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:24: error: No resource identifier found for attribute 'layout_marginBottom' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:24: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:32: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:32: error: No resource identifier found for attribute 'src' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:32: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:32: error: No resource identifier found for attribute 'layout_marginLeft' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:32: error: No resource identifier found for attribute 'layout_marginBottom' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:32: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:40: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:40: error: No resource identifier found for attribute 'src' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:40: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:40: error: No resource identifier found for attribute 'layout_marginLeft' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:40: error: No resource identifier found for attribute 'layout_marginBottom' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:40: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:48: error: No resource identifier found for attribute 'id' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:48: error: No resource identifier found for attribute 'layout_width' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:48: error: No resource identifier found for attribute 'layout_height' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:48: error: No resource identifier found for attribute 'layout_marginRight' in package 'android'
packages/apps/AccountsAndSyncSettings/res/layout/preference_widget_sync_toggle.xml:48: error: No resource identifier found for attribute 'layout_gravity' in package 'android'

...........

Sorry about the long log, just to get my point across. So where am I going wrong? Everything went perfectly fine until this step. I don't even understand what the first error means:

Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.

Is this causing the rest of the errors? I've tried Googling the hell out of it, but I'm still stuck.

What is going on?