如何使用 ACRA 发送 Android 崩溃报告 [英] How to send Android Crash report using ACRA

查看:34
本文介绍了如何使用 ACRA 发送 Android 崩溃报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将崩溃报告从我的应用程序发送到我的域或邮件,但仍然失败.

Am trying to send crash report from my applicatio to my domain or Mail but failed still.

为了获得邮件中的崩溃报告,我做到了

To get the crash report in mail, I did

@ReportsCrashes(

@ReportsCrashes(

      formKey = "",
      mailTo = "abc@gmail.com"
  )

回应是,发送文件 1372758321000-approved.stacktrace

And the response is, Sending file 1372758321000-approved.stacktrace

为了在我的域中获取崩溃报告,我做了

To get the crash report in my domain, I did

@ReportsCrashes(

@ReportsCrashes(

      formKey = "",
      formUri = "http://www.abc.com/test1"
)

回应是,发送文件 1372856882000-approved.stacktrace无法发送 1372856882000-approved.stacktrace 的崩溃报告org.acra.sender.ReportSenderException:通过 Http POST 发送 FORM 报告时出错

And the response is, Sending file 1372856882000-approved.stacktrace Failed to send crash report for 1372856882000-approved.stacktrace org.acra.sender.ReportSenderException: Error while sending FORM report via Http POST

任何帮助对我来说都会很方便并受到赞赏.

Any help will be handy for me and appreciated.

推荐答案

当我完全按照他们在他们的文档中所说的那样做时,ACRA 可以通过电子邮件发送报告:

ACRA works for me sending reports by e-mail when I do exactly as they say in their docs:

@ReportsCrashes(mailTo = "reports@yourdomain.com", // my email here
                mode = ReportingInteractionMode.TOAST,
                resToastText = R.string.crash_toast_text)

https://github.com/ACRA/acra/wiki/Report-Destinations#sending-reports-by-email

您可能忘记了吐司部分.或者可能是您没有电子邮件程序(例如当您在模拟器上运行时).

You are probably forgetting the toast part. Or can it be you don't have an e-mail program (such as when you're running on the simulator).

我认为不再支持通过 Google 文档发送报告.

I think sending reports by Google docs are not supported anymore.

这篇关于如何使用 ACRA 发送 Android 崩溃报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆