问题描述
我正在尝试将崩溃报告从我的应用程序发送到我的域或邮件,但仍然失败。
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.stacktraceFailed to send crash report for 1372856882000-approved.stacktraceorg.acra.sender.ReportSenderException: Error while sending FORM report via Http POST
任何帮助都将非常方便对我来说很感谢。
Any help will be handy for me and appreciated.
推荐答案
ACRA会按照我在他们的讲话中所说的那样通过电子邮件发送报告docs:
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)
您可能忘记了吐司部分。或者是您没有电子邮件程序(例如,当您在模拟器上运行时)。
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崩溃报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!