gpt4 book ai didi

android - Acra无法发送报告

转载 作者:太空宇宙 更新时间:2023-11-03 11:13:06 25 4
gpt4 key购买 nike

我在couchappy.com上配置了一个acra存储数据库。
acra存储:http://[myapp].coucappy.com/acra-[myapp]
在我的acralyzer应用程序中,我创建了一个cespa报告用户。

@ReportsCrashes(
formKey = "",
formUri = "http://[myapp].couchappy.com/acra-[myapp]/_design/acra-storage/_update/report",
reportType = org.acra.sender.HttpSender.Type.JSON,
httpMethod = org.acra.sender.HttpSender.Method.PUT,
formUriBasicAuthLogin = "cespa-reporter",
formUriBasicAuthPassword = "xxxxxxx",
customReportContent = { ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME, ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL, ReportField.CUSTOM_DATA, ReportField.STACK_TRACE, ReportField.LOGCAT }
)
public class CespaApp extends Application {

当ACRA试图发送事故报告时,几乎什么也没告诉我:
02-05 14:31:20.632: W/dalvikvm(15882): threadid=1: thread exiting with uncaught exception (group=0x40c5b438)
02-05 14:31:20.632: E/ACRA(15882): ACRA caught a NullPointerException exception for com.gmsoft. Building report.
02-05 14:31:20.642: D/ACRA(15882): Using custom Report Fields
02-05 14:31:20.662: I/ACRA(15882): READ_LOGS granted! ACRA can include LogCat and DropBox data.
02-05 14:31:20.692: D/ACRA(15882): Retrieving logcat output...
02-05 14:31:20.732: D/ACRA(15882): Writing crash report file 1391610680000.stacktrace.
02-05 14:31:20.742: D/ACRA(15882): About to start ReportSenderWorker from #handleException
02-05 14:31:20.742: D/ACRA(15882): Mark all pending reports as approved.
02-05 14:31:20.742: D/ACRA(15882): Looking for error files in /data/data/com.gmsoft/files
02-05 14:31:20.742: D/ACRA(15882): #checkAndSendReports - start
02-05 14:31:20.742: D/ACRA(15882): Looking for error files in /data/data/com.gmsoft/files
02-05 14:31:20.742: I/ACRA(15882): Sending file 1391609009000-approved.stacktrace
02-05 14:31:20.752: D/ACRA(15882): Waiting for Toast + worker...
02-05 14:31:20.762: D/ACRA(15882): Connect to http://cespacra.couchappy.com/acra-cespapp/_design/acra-storage/_update/report
02-05 14:31:20.772: D/ACRA(15882): Sending request to http://cespacra.couchappy.com/acra-cespapp/_design/acra-storage/_update/report/null

正如你所看到的,只告诉我那是试图发送报告,但没有更多。
我想知道为什么ACRA不能发送报告。
你能帮帮我吗?

最佳答案

你记得添加所有必需的权限吗?

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

关于android - Acra无法发送报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21580155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com