Eclipse and Android SDK issue “aapt.exe has stopped”

后端 未结 12 841
闹比i
闹比i 2021-01-08 00:03

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 proj

相关标签:
12条回答
  • 2021-01-08 00:32

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

    <item name="android:id">@+id/calender</item>
    
    0 讨论(0)
  • 2021-01-08 00:33

    Not sure but please try to use the Android SDK Build-Tools v18.1.1 instead of 19.0.1

    It might be the case that you have error in your resource files, the v19 build-tools won't report the error but keep failing to compile the R.

    Please read more detail in the 2nd comment of the question below. I also wrote the some steps I went through in the first reply. hope this will help solving your problem.

    'aapt' error. Pre Compiler Build aborted

    0 讨论(0)
  • 2021-01-08 00:38

    Check if you have any string values with html codes such as non-breaking-space (&nbsp;) Remove them and clean the project. It should work.

    Ram

    0 讨论(0)
  • 2021-01-08 00:38

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

    0 讨论(0)
  • 2021-01-08 00:39

    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.

    0 讨论(0)
  • 2021-01-08 00:41

    For me, this happened when I included a ” or ' character. I'd replaced the apostrophe with &apos;, but aapt still wanted the prefixing backslash.

    0 讨论(0)
提交回复
热议问题