本文介绍了应用程序崩溃对生产,但不是在发展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚推出在谷歌我的品牌新的应用程序播放,但其崩溃当我尝试打开它。问题是,它使用的工作,发展得很好。

I just launched my brand new app on Google Play but its crashing when i try to open it. The thing is, it used to work just fine in development.

我ProGuard的启用,我试图禁用它,生成APK签署并手动设备上安装..但我的应用程序仍然无法打开。

I have ProGuard enabled and i tried disabling it, generating the signed apk and manually installing it on a device.. but my app still won't open.

因为我已经启用Crittercism,试了几次之后,我终于崩溃报告给的网站,它说:

Since i have Crittercism enabled, after a few tries, i finally got a crash to be reported to the website, and it says:

无法启动活动ComponentInfo {} com.pizzapp.android/com.pizzapp.android.login.PAWelcomeActivity:了java.lang.RuntimeException:java.lang.NoSuchMethodException:一个(活动,INT)

PAWelcomeActivity是我的主要活动!

PAWelcomeActivity is my main activity!

我ProGuard的-project.txt就像是:

my proguard-project.txt is like:

-keepattributes SourceFile, LineNumberTable, Exceptions, Signature, InnerClasses

-keep class com.newrelic.** { *; }
-keep class com.facebook.** { *; }
-keep class com.parse.** { *; }

-dontwarn com.newrelic.**

没有任何人有一个想法,这种崩溃是什么?

Does anybody have an idea what this crash is?

谢谢,
牛顿

更新1:

在这里,你可以看到我的包是如何组织的:

Here you can see how my package is organised:

推荐答案

我终于解决它......问题是,我忘了加上ActionBarSherlock code为ProGuard的与它的工作。

I finally solved it… the problem is that i forgot to add the ActionBarSherlock code for the proguard to work with it..

-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }
-keepattributes *Annotation*

这篇关于应用程序崩溃对生产,但不是在发展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 01:03