Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
237 views
in Technique[技术] by (71.8m points)

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

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 everything is ok until I get to press the "finish" button: then a popup appears saying "aapt.exe has stopped working" and I can't get my signed apk; the project doesn't return errors and compiles as usual.

I googled to find a solution but nothing of the solutions i found worked:

  • I cleaned the project (Project>Clean)
  • I disabled the automatic build (Project>Build Automatically)
  • I deleted all the imported libraries (Right click on the project>Properties>Java Build Path)
  • I updated all the related software (Help>Check for updates)
  • I put logcat mode on verbose
  • I deleted my .9.png drawables and readded to my project

These are all the solutions I found related to aapt.exe issues. Do you have any other suggestion?

PS: I'm also getting a layout issue with all my .9.png files that are not displayed correctly, but I don't know if it's related.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...