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

后端 未结 12 840
闹比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:15

    For me it was the buildToolsVersion '21.0.0' the old one buildToolsVersion '20.0.0' works for me but the newer one crashes the aapt.exe.

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

    Donot forget + sign for id attributes in menu.xml files

    <item android:id="@id/action_download_time"
    

    vs

    <item android:id="@+id/action_download_time"
    
    0 讨论(0)
  • 2021-01-08 00:20

    It also happend for me IF ASSETS FOLDER exist any file without resolution

    for examle: if ASSETS FOLDER exist any file

    file:///android_asset/html/qwwww
    

    [result] BUG! “aapt.exe has stopped”

    To solve it all files should have a resolution

    file:///android_asset/html/qwwww.css
    
    0 讨论(0)
  • 2021-01-08 00:25

    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

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

    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...

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

    For me it happend after creating a new activity by

    your_package-Right-Click-> Create a new-> "Android Activity"->Fill fields->"Done"
    

    I solved it by reverting to previous version of my app

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