ActionBarActivity closes after pressing hardware menu button. Without stack trace

倾然丶 夕夏残阳落幕 提交于 2019-11-29 11:30:27

Reported also at Android App crashes upon menu button click, this appears to be an issue with the latest 0.9.1 version of gradle and I can confirm that it kills apps on Froyo as well as Gingerbread. Read more about a similar problem here and another report here. The issue seems to be related to a new png processor. As mentioned by uchidev, the solution for now is to use gradle 0.9.0 by changing build.gradle.

An alternate suggestion to reverting: you can add android.aaptOptions.useAaptPngCruncher = true to build.gradle.

Update 3/28/14: This bug seems to have been fixed in Android Studio 0.5.3.

I encountered the just same problem today. Please change 'com.android.tools.build:gradle:0.9.+' of a build.gradle file into 'com.android.tools.build:gradle:0.9.0' and, sync project. I think that Gradle plugin version 0.9.1 is wrong.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!