我在Samsung Galaxy S4 mini中運行此操作。 KitKat Android。錯誤getGoogleAppId失敗,狀態爲:10 Android KitKat - GCM和Google Drive
在應用程序中,我同時使用GCM進行消息傳遞和Google Drive API。我認爲我得到的錯誤是來自GCM,但我不確定。
這裏是logcat的:
I/PersonaManager﹕ getPersonaService() name persona_policy
I/GMPM﹕ App measurement is starting up
I/PersonaManager﹕ getPersonaService() name persona_policy
I/MainActivity﹕ onCreate
E/GMPM﹕ getGoogleAppId failed with status: 10
E/GMPM﹕ Uploading is not possible. App measurement disabled
I/PersonaManager﹕ getPersonaService() name persona_policy
我不明白的是哪裏GMPM啓動?在我的代碼中,我沒有激活Google Drive或GCM。你甚至可以在我的MainActivity之前看到GMPM啓動,所以我不知道如何調試它?
我的應用程序運行良好。它仍然連接到GCM,仍然收到消息確定。仍然連接到Google雲端硬盤。仍然檢索文件。
但這個錯誤讓我擔心。有誰知道是什麼原因造成的,或者我可以怎樣去調試它?
我在啓用Google雲端硬盤和Google Analytics的應用中看到相同的錯誤日誌。儘管出現錯誤消息,但這些功能似乎正在被罰款。當我開始嘗試添加GCM時,我配置並安裝了一個新的'google-services.json'文件。之後,錯誤消息消失。你可以嘗試刷新你的文件,看看是否有所作爲。 –
@qbix你應該把它寫成答案。你至少會得到一票。 –
謝謝 - 這幫了我,它修復了我剛使用最新的google-services.json時的錯誤。 – Simon