2014-11-14 68 views
0

當我的應用程序嘗試使用BackupTransportService備份其數據時,我的堆棧跟蹤中出現此錯誤。我無法在網上找到任何有關它的信息,因此無法弄清楚爲什麼我的備份失敗。有任何想法嗎?什麼是PolicyException?我找不到任何有關Android的信息

11-13 19:53:44.481: D/PerformBackupTask(352): starting agent for backup of BackupRequest{pkg=com.NsouthProductions.gradetrackerpro} 
11-13 19:53:44.501: I/BackupManagerService(352): got agent [email protected] 
11-13 19:53:44.501: D/PerformBackupTask(352): invokeAgentForBackup on com.NsouthProductions.gradetrackerpro 
11-13 19:53:44.511: V/BackupServiceBinder(30648): doBackup() invoked 
11-13 19:53:44.511: D/GradeTracker.MyBackupAgent(30648): onBackup called 
11-13 19:53:44.511: D/BackupHelperDispatcher(30648): handling existing helper 'GradeTracker.db' [email protected] 
11-13 19:53:45.382: E/BackupTransportService(352): com.google.android.backup.BackupRequestGenerator$PolicyException: server error in app com.NsouthProductions.gradetrackerpro: code 7 
11-13 19:53:45.382: E/BackupTransportService(352): at com.google.android.backup.BackupRequestGenerator.parseResponse(BackupRequestGenerator.java:360) 
11-13 19:53:45.382: E/BackupTransportService(352): at com.google.android.backup.BackupTransportService.sendRequestLocked(BackupTransportService.java:849) 
11-13 19:53:45.382: E/BackupTransportService(352): at com.google.android.backup.BackupTransportService.access$600(BackupTransportService.java:78) 
11-13 19:53:45.382: E/BackupTransportService(352): at com.google.android.backup.BackupTransportService$1.finishBackup(BackupTransportService.java:444) 
11-13 19:53:45.382: E/BackupTransportService(352): at com.android.server.BackupManagerService$PerformBackupTask.operationComplete(BackupManagerService.java:2320) 
11-13 19:53:45.382: E/BackupTransportService(352): at com.android.server.BackupManagerService$BackupHandler.handleMessage(BackupManagerService.java:572) 
11-13 19:53:45.552: I/PerformBackupTask(352): Backup pass finished. 
+0

很多類似的問題在SO中,但沒有解決方案。 – Raptor

回答

0

解決了!我的Android備份服務密鑰顯然很糟糕。我的清單中的軟件包名稱中有一些大寫字母,所以我想「也許我應該確保我的密鑰是使用相同大小寫的軟件包名稱生成的。」因此,我再次註冊了我的清單中的軟件包名稱的直接複製/粘貼,並且我得到了一個現在似乎正在工作的不同密鑰。

相關問題