android - ACRA 不发送到电子邮件

标签 android acra

我正在尝试将崩溃报告发送到电子邮件,但当我的应用程序崩溃时,什么也没有发生。我试着搞乱配置,但我一直收到错误(大多数是未知成员,就是这样)。这是我的类(class)代码。

    @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);
    }
}

我的 list :

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

最佳答案

根据您的 logcat,您的应用似乎没有包含 ACRA 库。您需要配置您的构建,以便 ACRA 包含在您的 APK 中。

关于android - ACRA 不发送到电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33373199/

相关文章:

android - 将YUV420Sp图像逆时针旋转90度

android - ACRA总是被禁用吗?

android - 自动完成 TextView 建议列表在键盘后面

java - 使用 Eclipse 在 Java 中格式化布局

android - 什么是 formkey 以及如何获取 formkey?

java - 从 ACRA 4.5 升级到 ACRA 4.6 后出现编译错误

android - ACRA 4.9.0 : How can I write ACRA report to file (in Application data folder)

android - ACRA 在 CrashReports.csv 文件中不显示任何内容

android - 测试 Android 应用程序的性能

android - 谷歌地图 APIv2 问题