我做了一个简单的游戏,并使用谷歌玩游戏服务。
当我在我的设备上调试我的游戏时,一切正常(排行榜和成就),但当我使用签名的APK时,只有成就有效。
排行榜没有得分。我在两个不同的设备和不同的帐户上测试了它。
我检查了证书指纹并创建了一个新的排行榜。没有帮助。
启动我的应用后,我在logcat中得到了这个:
09-11 13:44:47.182 26465-4990/? E/PopupManager: No content view usable to display popups. Popups will not be displayed in response to this client's calls. Use setViewForPopups() to set your content view.
09-11 13:44:47.236 26465-4990/? E/PopupManager: No content view usable to display popups. Popups will not be displayed in response to this client's calls. Use setViewForPopups() to set your content view.
09-11 13:44:47.456 26465-28247/? E/Volley: [56006] BasicNetwork.performRequest: Unexpected response code 404 for https://www.googleapis.com/games/v1/applications/played
09-11 13:44:47.859 26465-28244/? E/Volley: [56003] BasicNetwork.performRequest: Unexpected response code 404 for https://www.googleapis.com/games/v1/leaderboards/scores?language=de_DE
我在mainActivity的if (client != null && client.isConnected()) -> Games.Leaderboards.submitScore(client, "xxxxx-xxxxx", getHichScore());
致电onConnected()
。