title: Adding android drawable to menu XML stop app compiling
body: <p>I am working on an android project and have an XML file for the action bar menu, its been working fine, but I now need to add an extra item with an icon, but it this displays an error in the eclipse tab and the console output. If I remove the icon field, then its fine, but if I add the icon, then I get the error. </p>
  
  <p>Below is the XML that contains the menu item. I've included one item that previously worked and the new item that isn't working</p>
  
  <pre><code>&lt;item android:id="@+id/mnu_search"
          android:title="Search"
          android:icon="@android:drawable/ic_menu_search"
          android:showAsAction="always"&gt;
      &lt;/item&gt;
      &lt;item android:id="@+id/mnu_sync"
          android:title="Sync"
          android:icon="@android:drawable/ic_menu_refresh"
          android:showAsAction="always"&gt;
      &lt;/item&gt;
  </code></pre>
  
  <p>The sync menu item is the one that isn't working, the search item is working fine. </p>
  
  <p>The error in the errors tab in eclipse says</p>
  
  <pre><code>Unparsed aapt error(s)! Check the console for output
  </code></pre>
  
  <p>Below is the console output</p>
  
  <pre><code>W/ResourceType( 9156): Bad XML block: header size 305 or total size 0 is larger than data size 0
  C:\Users\Chris\workspace\AndroidPasswordManager\res\menu\main_menu.xml:13: error: Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_refresh').
  W/ResourceType( 8896): Bad XML block: header size 300 or total size 0 is larger than data size 0
  C:\Users\Chris\workspace\AndroidPasswordManager\res\menu\main_menu.xml:13: error: Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_refresh').
  W/ResourceType( 8984): Bad XML block: header size 303 or total size 0 is larger than data size 0
  C:\Users\Chris\workspace\AndroidPasswordManager\res\menu\main_menu.xml:13: error: Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_refresh').
  </code></pre>
  
  <p>I have no idea what could be wrong. I've check in the android sdk directory for the images and it definetely exists, I'm using api level 15.</p>
  
  <p>Thanks for any help you can provide. </p>