aapt.exe crashes when I try to export my Android application from Eclipse

后端 未结 3 2116
逝去的感伤
逝去的感伤 2020-12-14 04:02

Since I updated two days ago my Android SDK to version API 14 I\'m getting troubles using Eclipse Helios on my Windows 7 x64 laptop.

When I try to export a project e

相关标签:
3条回答
  • 2020-12-14 04:47

    I found a solution in Window>Preferences>Android>Build by setting "Build output" on Normal and then Project>Clean>Clean All.

    I don't know if this is the definitive solution but it made me able to export my apk with the proper .9.png drawable layout.

    Hope it helps.

    0 讨论(0)
  • 2020-12-14 04:51

    I had this same problem defining a menu item like this:

    <item 
        android:id="@+id/menu_help" 
        android:showAsAction="never|withText"
        android:title="@string/action_label_help"
        android:icon="@drawable/ic_menu_help"
    />
    

    I was just missing the icon file ic_menu_help, but instead of giving me a nice message that the image file was missing, it crashes aapt.

    0 讨论(0)
  • 2020-12-14 04:59

    I faced the same problem when I tried to add id as <resources> as mentioned here.

    <resources>
      <item type="id" name="button_ok" />
      <item type="id" name="dialog_exit" />
    </resources>
    

    When I deleted this, the build was successful.

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