Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 825667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:17:34+00:00 2026-05-15T03:17:34+00:00

I am trying to create an app with some menus, an I am following

  • 0

I am trying to create an app with some menus, an I am following the basic example available in the official android site:

http://developer.android.com/guide/topics/ui/menus.html

My problems appear when I define the menu in the XML. After creating the folder res/menu and creating the menu_option.xml file from eclipse…. The project (in general) gives an error that can be read from the Problems tab:

 
Unparsed aapt error(s)! Check the console for output
Android Packaging Problem

So, changing to the Console tab to get more information about the problem, this can be read:

 
[2010-06-02 11:35:54 - TestAudio] Error in an XML file: aborting build.
[2010-06-02 11:35:54 - TestAudio] W/ResourceType(11566): Bad XML block: header size 63327 or total size -144759824 is larger than data size 0
[2010-06-02 11:35:54 - TestAudio] /home/User/workspace/TestAudio/res/menu/options_menu.xml:1: error: Error parsing XML: no element found

The strange thing is that eclipse recognizes the menu items that I've defined in the XML,I can reference them in the code with no problems and my main activity builds. (and the rest of the files too).

Could it be that when eclipse creates a file, for some reason, the Android SDK has problems to read it, or something similar??

The XML code is exactly the same as the one in the example, so I don't really know what is happening. The code in options_menu.xml is this:

<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/new_game"
          android:title="New Game" />
    <item android:id="@+id/quit"
          android:title="Quit" />
</menu>

Thanks in advance for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:17:34+00:00Added an answer on May 15, 2026 at 3:17 am

    Judging by the position of the error, and assuming you simply copy/pasted the XML from the example, you may be missing the XML declaration which should be on the first line of each XML file for it to be considered well-formed:

    <?xml version="1.0" encoding="UTF-8"?>
    

    Alternatively, you could try a clean build of the project to see if the error goes away

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create some cool effects for a picture app of mine.
I'm trying to create a simple Java app that uses JNI to call some
Trying to use Jbuilder to create some JSON views for my app, but the
I'm trying to create an app for Android that simply sends a command to
I am trying to create a simple alert app for some friends. Basically i
Just started playing with Android and I'm trying to create an app that has
I'm trying to create some Functional tests for a Django app that uses South
I'm trying to create some javascript validation for my web app and it's all
I'm trying to create a plugin for Android Mail App. this plugin will filters
I am trying to create an app that will send some data to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.