내 안드로이드 프로젝트에서 android crash report을 사용하려고합니다.Android 크래시 보고서가 Google 문서로 데이터를 보내지 않습니다.
jar 파일을 추가했으며 src 디렉토리에 다음과 같은 코드가 있습니다.
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();
}
}
내 구글 스프레드 시트의 URL과 같이 :
https://docs.google.com/spreadsheet/ccc?key=0xxxxxxxxxxxxxxxxxxxS2JONHc#gid=0
하지만 내 로그 캣에서 다음과 같은 예외가 얻을 응용 프로그램을 실행할 때 :
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
값을 올바르게 부여받는 사람입니까? 사전에
감사합니다.