c0dezer019
c0dezer019

Reputation: 386

ACRA not sending to eMail

I am trying to send crash reports to email but when my app crashes nothing happens. I tried messing around with configurations but i just kept getting errors (unknown member mostly, wth that is). Here's my code for the class.

    @ReportsCrashes(
    mailTo = "[email protected]")
public class MyApplication extends Application
{
    @Override
    public void onCreate() {
        super.onCreate();

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

My manifest:

<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>

Upvotes: 3

Views: 980

Answers (1)

William
William

Reputation: 20196

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.

Upvotes: 2

Related Questions