简体   繁体   English

Android ACRA不报告崩溃

[英]Android ACRA not reporting crashes

I'm trying to import ACRA to my Android app but it's not reporting force closes. 我正在尝试将ACRA导入我的Android应用程序,但没有报告强制关闭。 I followed the guide but still it doesn't report the crashes. 我遵循了指南,但仍然没有报告崩溃情况。 Any suggestion why? 有什么建议吗? xml: XML:

 <CheckBoxPreference android:key="acra.enable"
        android:title="@string/pref_disable_acra"
        android:summaryOn="@string/pref_acra_enabled"
        android:summaryOff="@string/pref_acra_disabled"
        android:defaultValue="true"/>

Preference class: 偏好类别:

public class Preferences extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.layout.preferences);

     }
}

Here is a picture while enabling/disabling the checkbox: 这是启用/禁用复选框时的图片: 在此处输入图片说明

Make sure that you have include the ACRA into manisfest too and the allow internet permission . 确保您也将ACRA纳入manisfest并允许Internet许可。

Try don't use notification crash report, still buggy, try only use toast show crash method. 尝试不使用通知崩溃报告,仍然存在错误,请尝试仅使用Toast Show崩溃方法。 Also make sure that your apps does not crash before the ACRA loaded. 另外,请确保您的应用在加载ACRA之前不会崩溃。

And at last check your form key and make sure that you have make the form in the Google docs and enable ur ARCA. 最后检查您的表单密钥,并确保已在Google文档中创建了表单并启用了您的ARCA。

Make sure the formKey parameter is correct, and set the mode to TOAST to actually see when a report is being sent. 确保formKey参数正确,并将模式设置为TOAST以实际查看何时发送报告。 If you are not connected to the Internet, reports will be sent when you connect. 如果未连接到Internet,则在连接时将发送报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM