ActionBarActivity closes after pressing hardware menu button. Without stack trace

前端 未结 2 1052
粉色の甜心
粉色の甜心 2020-12-19 22:59

I have a really strange problem. When I use ActionBarActivity after clicking on hardware menu button (device with Android 2.3) the app closes unexpectedly without any partic

相关标签:
2条回答
  • 2020-12-19 23:36

    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.

    0 讨论(0)
  • 2020-12-19 23:40

    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.

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