首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Android崩溃报告不会向google docs发送数据

Android崩溃报告不会向google docs发送数据
EN

Stack Overflow用户
提问于 2013-03-25 20:16:29
回答 1查看 2.1K关注 0票数 1

我正尝试在我的安卓项目中使用android crash report

我已经添加了jar,并且在我的src目录中有如下代码。

代码语言:javascript
运行
复制
import android.app.Application;
import org.acra.*;
import org.acra.annotation.*;

@ReportsCrashes(formKey = "0xxxxxxxxxxxxxxxxxxxS2JONHc")
public class CrashLog extends Application {

        @Override
        public void onCreate() {
            // The following line triggers the initialization of ACRA
            ACRA.init(this);
            super.onCreate();
        }

    }

我的google电子表格url如下所示:

https://docs.google.com/spreadsheet/ccc?key=0xxxxxxxxxxxxxxxxxxxS2JONHc#gid=0

但是当我运行应用程序时,我在我的logcat中得到了以下异常:

代码语言:javascript
运行
复制
Looking for error files in /data/data/com.simplepay.hellomobile/files
I/ACRA    (  547): Sending file 1364199528000-approved.stacktrace
D/ACRA    (  547): Sending report 5653c004-9511-4bee-b918-2896a28270b9
D/ACRA    (  547): Connect to https://docs.google.com/spreadsheet/formResponse?formkey=0AkxxxxxxxJS2JONHc&ifq
D/dalvikvm(  547): GC_CONCURRENT freed 1167K, 54% free 3134K/6727K, external 2336K/2711K, paused 5ms+6ms
D/ACRA    (  547): Sending request to https://docs.google.com/spreadsheet/formResponse?formkey=0AkxxxxxxxxxxxNHc&ifq
W/ResponseProcessCookies(  547): Invalid cookie header: "Set-Cookie: NID=67=QXbN91Capc8QPihoEN08wFVyvr8barZQGX6RVH0OUCbZx4Z8LYTeOrQOXIevhcxpA9mlQ41aeF3lgpJxqxpvx91xLVExQlz3VPcNRaGkZXyazBylB855o236ORifVsdm;Domain=.google.com;Path=/;Expires=Tue, 24-Sep-2013 12:08:29 GMT;HttpOnly". Unable to parse expires attribute: Tue
E/ACRA    (  547): Failed to send crash report for 1364199528000-approved.stacktrace
E/ACRA    (  547): org.acra.sender.ReportSenderException: Error while sending report to Google Form.
E/ACRA    (  547):  at org.acra.sender.GoogleFormSender.send(GoogleFormSender.java:88)
E/ACRA    (  547):  at org.acra.SendWorker.sendCrashReport(SendWorker.java:178)
E/ACRA    (  547):  at org.acra.SendWorker.checkAndSendReports(SendWorker.java:141)
E/ACRA    (  547):  at org.acra.SendWorker.run(SendWorker.java:77)
E/ACRA    (  547): Caused by: java.io.IOException: Host returned error code 400
E/ACRA    (  547):  at org.acra.util.HttpRequest.sendPost(HttpRequest.java:148)
E/ACRA    (  547):  at org.acra.sender.GoogleFormSender.send(GoogleFormSender.java:85)
E/ACRA    (  547):  ... 3 more
D/ACRA    (  547): #checkAndSendReports - finish

我在哪里犯了错?我从我的url得到的key就是被赋予formKey值的那个,对吗?

提前谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-03-25 21:36:26

必须使用已添加表单的表格键,而不是电子表格的表格键。请打开您的电子表格,然后在菜单中打开表单。在表单的末尾将有一个包含密钥的链接。

代码语言:javascript
运行
复制
https://docs.google.com/spreadsheet/viewform?formkey=YOUR_FORM_FORMKEY

这是BasicSetup instructions.

请注意Since the recent update of Google Forms by Google, the usage of Google Docs as a storage engine for ACRA reports is becoming deprecated.

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15614718

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档