Eclipse and Android SDK issue "aapt.exe has stopped"

25,033

Solution 1

Remove id from style like here @+id then build again you get success...

<item name="android:id">@+id/calender</item>

Solution 2

it seems you were missing some entries in strings.xml

in my case I was deleting <string name="action_settings">Settings</string>

thinking it was not used by the project and placing it back solved the issue. You can search for same or similar type of tag in you project.

Solution 3

This can also happen if you have an incorrect option in an item. Example:

<item
    android:id="@+id/menu_dashboard_add_group"
    android:icon="@android:drawable/btn_plus"
    android:title="Add group"
    android:showAsAction="true">

Note the true that is invalid for android:showAsAction

Solution 4

Happens when you don't put @+id/ in menus/layout xml files.

Solution 5

Apparently it seems that the only thing that worked for me was writing back the resourse <string name="action_settings">Settings</string> after which the problem appeared. Actually I erased it in the first place because it was not used througout my open project...

Share:
25,033
Jaison Brooks
Author by

Jaison Brooks

Just {a.New} Developer, trying to make c[0,0]l things... SOreadytohelp

Updated on July 15, 2022

Comments

  • Jaison Brooks
    Jaison Brooks almost 2 years

    I'm having an issue on my Windows 7 64-bit machine with aapt.exe. It is throwing the following error:

    aapt.exe has stopped working

    Its not project related, Since i've tried multiple projects, it seems to happen with any workspace in Eclipse as well. New project or old project it just keeps failing when building and running my application.

    I'm using the latest JDK-6 with the latest Android SDK 22.0.1, with Build Tools and Platform tools.

    Deleting the entire SDK and Eclipse and unziping and resetting up doesnt seem to resolve it either.

    Any ideas?

  • Felix
    Felix almost 11 years
    Um, so which id are we meant to remove? The android:id or the @+id? Could you please put what the line should look like after the id is removed? Thanks!
  • deviant
    deviant over 10 years
    Anybody know why this issue happens?
  • MZB
    MZB over 10 years
    +1 This solved my crash problem. Crashed on menu <item> if the string name was mistyped. Did nobody test this code on error conditions?
  • Vivek Giri
    Vivek Giri over 10 years
    Pleased to know it helped you. Thanks for voting up
  • Pangu
    Pangu about 8 years
    This fixed my issue!