- Android style Resources compile (aapt) failing : Bad resource table: header size 0xc
- Given a style
- <style name="ActionBarTitleContainer">
- <item name="android:id">@id/title_container</item>
- <item name="android:layout_width">fill_parent</item>
- <item name="android:layout_height">@dimen/title_height</item>
- <item name="android:orientation">horizontal</item>
- <item name="android:background">@color/title_color_light</item>
- </style>
- <item name="android:id">@id/info_container</item>
- <style name="ActionBarTitleContainer">
- <item name="android:id">@id/title_container</item>
- <item name="android:layout_width">fill_parent</item>
- <item name="android:layout_height">@dimen/title_height</item>
- <item name="android:orientation">horizontal</item>
- <item name="android:background">@color/title_color_light</item>
- </style>
- <style name="ActionBarInfoContainer">
- <item name="android:id">@id/info_container</item>
- <item name="android:layout_width">fill_parent</item>
- <item name="android:layout_height">@dimen/info_height1</item>
- <item name="android:orientation">horizontal</item>
- <item name="android:background">@color/title_color_light</item>
- </style>
- <style name="ActionBarInfoContainer">
- <item name="android:id">@id/info_container</item>
- Description Resource Path Location Type
- error: Error: No resource found that matches the given name (at 'android:id' with value '@id/info_container'). styles.xml /MyApp/res/values line 68 Android AAPT Problem
- <style name="ActionBarInfoContainer">
- <item name="android:id">@+id/info_container</item>
- W/ResourceType( 2202): Bad resource table: header size 0xc or total size 0x4aba is not on an integer boundary
- W/ResourceType( 2202): Bad resource table: header size 0xc or total size 0x4aba is not on an integer boundary
- ERROR: Unable to parse generated resources, aborting.
- 'aapt' error. Pre Compiler Build aborted.
- <style name="ActionBarTitleContainer">
- <item name="android:id">@id/title_container</item>
- ....
- </style>
- <style name="ActionBarInfoContainer">
- <item name="android:id">@id/info_container</item>
- ....
- </style>
- <resources>
- <item type="id" name="title_container" />
- <item type="id" name="info_container" />
- Open Eclipse Preferences
- Open in the list on the left
- Android
- Build
- Set Build output to
- Verbose
- Hit OK
- Open Console View
- Window > View > Console
- Do clean build or type a space in and file and hit save if you dont want to do full build
- Resources compiler aapt will run first
- and throw error
- [2011-05-15 16:22:25 - MyApp] (new resource id filechooser_file_view from /Users/user1/Documents/workspace/MyApp/res/layout/filechooser_file_view.xml)
- [2011-05-15 16:22:25 - MyApp] (new resource id listbusmapsactivity_layout from /Users/user1/Documents/workspace/MyApp/res/layout/listbusmapsactivity_layout.xml)
- [2011-05-15 16:22:25 - MyApp] (new resource id nearest_bus_maps_layout from /Users/user1/Documents/workspace/MyApp/res/layout/nearest_bus_maps_layout.xml)
- [2011-05-15 16:22:25 - MyApp] (new resource id nearest_bus_stops_layout from /Users/user1/Documents/workspace/MyApp/res/layout/nearest_bus_stops_layout.xml)
- [2011-05-15 16:22:25 - MyApp] W/ResourceType( 2247): Bad resource table: header size 0xc or total size 0x4aba is not on an integer boundary
- [2011-05-15 16:22:25 - MyApp] W/ResourceType( 2247): Bad resource table: header size 0xc or total size 0x4aba is not on an integer boundary
- [2011-05-15 16:22:25 - MyApp] ERROR: Unable to parse generated resources, aborting.
- [2011-05-15 16:22:25 - MyApp] (new resource id open_web_page_activity from /Users/user1/Documents/workspace/MyApp/res/layout/open_web_page_activity.xml)
- [2011-05-15 16:22:25 - MyApp] (new resource id send_email_activity from /Users/user1/Documents/workspace/MyApp/res/layout/send_email_activity.xml)
- [2011-05-15 16:22:25 - MyApp] 'aapt' error. Pre Compiler Build aborted.
- 'aapt' error. Pre Compiler Build aborted.
- /send_email_activity.xml
- Files:
- TIP In the Console window find the last file that compiled ok before the error
- 'send_email_activity.xml'
- And do CTRL/CMD(Mac) + F for previous occurrences under the Files: section
- Files:
- drawable/alphabet_bar_bg.xml
- Src: /Users/clearbrian/Documents/workspace/LondonBusStopMaps/res/drawable/alphabet_bar_bg.xml
- drawable/alphabet_separator_bg.xml
- Src: /Users/clearbrian/Documents/workspace/LondonBusStopMaps/res/drawable/alphabet_separator_bg.xml
- .......
- layout/send_email_activity.xml
- Src: /Users/clearbrian/Documents/workspace/LondonBusStopMaps/res/layout/send_email_activity.xml
- values/colors.xml
- Src: /Users/clearbrian/Documents/workspace/LondonBusStopMaps/res/values/colors.xml
- .......
- values/themes.xml
- Src: /Users/clearbrian/Documents/workspace/LondonBusStopMaps/res/values/themes.xml
- AndroidManifest.xml
- Src: /Users/clearbrian/Documents/workspace/LondonBusStopMaps/AndroidManifest.xml
- [2011-05-15 16:22:25 - MyApp] W/ResourceType( 2247): Bad resource table: header size 0xc or total size 0x4aba is not on an integer boundary
- [2011-05-15 16:22:25 - MyApp] W/ResourceType( 2247): Bad resource table: header size 0xc or total size 0x4aba is not on an integer boundary
- [2011-05-15 16:22:25 - MyApp] ERROR: Unable to parse generated resources, aborting.
- <style name="ActionBarInfoContainer">
- <item name="android:id">@id/info_container</item>
- ...
- <item name="android:background">@color/title_color_light</item>
- </style>
- <style name="ActionBarTitleContainer">
- <item name="android:id">@id/title_container</item>
- ...
- </style>
- <style name="ActionBarInfoContainer">
- <item name="android:id">@+id/info_container</item>
- ...
- </style>
- <item name="android:id">@+id/info_container</item>
- <item name="android:id">@id/info_container</item>
- <resources>
- <item type="id" name="title_container" />
- <item type="id" name="info_container" />