Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aapt.exe has stopped working in eclipse 4.3 kepler SDK 22.3 API level 19

Tags:

android

aapt

when i compile android program in Eclipse4.3 kepler with SDK version 22.3 API level 19 than it throws an error as aapt.exe has stopped working log shows this Problem signature:

Problem Event Name: APPCRASH   
Application Name:   aapt.exe   
Application Version:    0.0.0.0 
Application Timestamp:  52684cb5
Fault Module Name:  aapt.exe   
Fault Module Version:   0.0.0.0   
Fault Module Timestamp: 52684cb5   
Exception Code: c0000005   
Exception Offset:   0003cf2a   
OS Version: 6.2.9200.2.0.0.768.101   
Locale ID:  16393   
Additional Information 1:   5861   
Additional Information 2:   5861822e1919d7c014bbb064c64908b2   
Additional Information 3:   dac6   
Additional Information 4:   dac6c2650fa14dd558bd9f448e23afd1  Read our privacy statement online:   http://go.microsoft.com/fwlink/?linkid=190175  If the online privacy statement is not available, please read our privacy statement offline:   C:\Windows\system32\en-GB\erofflps.txt

please guys help me out from this i can't even compile hello world!!!!

like image 686
jabir jazz Avatar asked Nov 18 '13 12:11

jabir jazz


4 Answers

Also there is can be problem with incorrect menu option

<item
    android:id="@+id/action_grid"
    android:icon="@drawable/ic_grid"
    android:title="Grid"
    android:showAsAction="true">

in my case an icon in drawable was absent. Eclipse doesn't notify about this. Check carefully this moment!

like image 91
validcat Avatar answered Oct 13 '22 00:10

validcat


In eclipse, I do this to solve it:

  1. Windows > Preferences > Android > Build > Build Ouput > Select "Verbose"

  2. Select Project > Clean > OK

  3. Select Project > Build All

  4. Select "Console" output.

You may have to flip from DDBMS to Android here, mine flips back and forth. In the Android Console you will see the exact XML discrepancy causing the problem.

like image 43
user3092587 Avatar answered Oct 12 '22 23:10

user3092587


For me, it seems to be a problem with Android SDK Build Tools 19 so I downgraded to an older version, 18.1.1 in my case.

like image 45
dt0 Avatar answered Oct 13 '22 00:10

dt0


In my case the problem was due to missing xmlns attributes for namespace prefixes used in a manually created menu file. In my case these prefixes were app:, tools: and context:. I used NetBeans Check XML feature to find and fix the syntax issues in my Android XML files. Here is how:

  1. Open XML file in NetBeans: File => Open File
  2. Use right-click in editor window for XML file and choose "Check XML"
  3. Fix errors reported
  4. Repeat "Check XML" and fix error until no more errors
like image 29
Farrukh Najmi Avatar answered Oct 12 '22 23:10

Farrukh Najmi