Android的崩溃报告并没有将数据发送到谷歌文档 [英] Android crash report doesn't send data to google docs

查看:440
本文介绍了Android的崩溃报告并没有将数据发送到谷歌文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用的Andr​​oid崩溃报告我的Andr​​oid项目。

I'm trying to use the android crash report in my android project.

我添加了罐子,我有code像这样在我的src目录下。

I have added the jar and I have code like this in my src directory.

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

    }

我的谷歌小号preadsheet网址是这样的:

My google spreadsheet url look like this:

https://docs.google.com/s$p$padsheet/ccc?key=0xxxxxxxxxxxxxxxxxxxS2JONHc#gid=0

但是当我运行该应用程序我得到我的logcat以下异常:

But when I run the app I get the following exception in my logcat:

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

我在哪里做的错误?在,我从我的网址了是要给予 formKey 值右边的?

where am I making the mistake? The key that I got from my url is the one to be given the formKey value right?

先谢谢了。

推荐答案

您必须使用添加的形式formkey,而不是在S preadsheet的。请打开您的S preadsheet,比打开窗体的菜单。会有在与它键的形式的端部的连结。

You must use the formkey of the added form and not of the spreadsheet. Please open your spreadsheet and than open the form at the menu. There will be a link at the end of the form with the key in it.

https://docs.google.com/spreadsheet/viewform?formkey=YOUR_FORM_FORMKEY

下面是 BasicSetup说明。

请注意自谷歌形式由谷歌,谷歌文档的使用作为存储最近更新引擎ACRA报告正在成为德precated。

这篇关于Android的崩溃报告并没有将数据发送到谷歌文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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