ACRA不发送电子邮件

时间:2015-10-27 16:19:39

标签: android acra

我正在尝试将崩溃报告发送到电子邮件,但是当我的应用崩溃时没有任何反应。我尝试搞乱配置,但我只是不断收到错误(主要是未知成员,这就是)。这是我的课程代码。

    @ReportsCrashes(
    mailTo = "me@gmail.com")
public class MyApplication extends Application
{
    @Override
    public void onCreate() {
        super.onCreate();

        // The following line triggers the initialization of ACRA
        ACRA.init(this);
    }
}

我的清单:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.ghostdevelopment.ueni2"
    android:versionCode="1"
    android:versionName="1.0"
    android:debuggable="true">

    <uses-permission android:name="android.permission.INTERNET"></uses-permission>

    <uses-sdk 
        android:minSdkVersion="8" 
        android:targetSdkVersion="25" />

    <application
        android:name="MyApplication"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:label="@string/app_name"
            android:name="com.ghostdevelopment.ueni2.MainActivity" >
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:label="Ship Database"
            android:name=".ShipInfo" />
    </application>

</manifest>

1 个答案:

答案 0 :(得分:2)

According to your logcat it appears that your app has not included the ACRA library. You need to configure your build so that ACRA is included in your APK.