首页 > 解决方案 > Google Play 游戏服务登录时应用程序崩溃

问题描述

我正在尝试在我的游戏中测试 google play 游戏服务,但每当我尝试登录该服务时,我的游戏“停止工作”,就像崩溃一样。我正在尝试使用发送到 android 设备监视器的 logcat 来解决这个问题,但它并没有告诉我 google play 游戏服务出了什么问题。例如,这些是我点击应用中的成就按钮后的日志(因为我尚未登录,但它会在显示成就之前尝试登录):

10-27 15:25:22.405: I/Unity(15089): UnityIAP Promo: Clearing promo product metadata
10-27 15:25:22.405: I/Unity(15089):  
10-27 15:25:22.405: I/Unity(15089): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-27 15:25:22.683: D/ViewRootImpl@ddd8e3d[UnityPlayerActivity](15089): ViewPostIme pointer 0
10-27 15:25:22.746: D/ViewRootImpl@ddd8e3d[UnityPlayerActivity](15089): ViewPostIme pointer 1
10-27 15:25:23.376: D/ViewRootImpl@ddd8e3d[UnityPlayerActivity](15089): ViewPostIme pointer 0
10-27 15:25:23.429: D/ViewRootImpl@ddd8e3d[UnityPlayerActivity](15089): ViewPostIme pointer 1
10-27 15:25:23.450: I/Unity(15089): Cannot show leaderboard: not authenticated
10-27 15:25:23.450: I/Unity(15089):  
10-27 15:25:23.450: I/Unity(15089): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-27 15:25:23.500: D/GamesUnitySDK(15089): Performing Android initialization of the GPG SDK
10-27 15:25:23.537: I/Unity(15089): Building GPG services, implicitly attempts silent auth
10-27 15:25:23.537: I/Unity(15089):  
10-27 15:25:23.537: I/Unity(15089): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-27 15:25:23.602: W/Unity(15089): !!! [Play Games Plugin DLL] 10/27/18 15:25:23 -04:00 WARNING: Creating new PlayGamesPlatform
10-27 15:25:23.602: W/Unity(15089):  
10-27 15:25:23.602: W/Unity(15089): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-27 15:25:23.602: I/Unity(15089):  [Play Games Plugin DLL] 10/27/18 15:25:23 -04:00 DEBUG: Activating PlayGamesPlatform.
10-27 15:25:23.602: I/Unity(15089):  
10-27 15:25:23.602: I/Unity(15089): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-27 15:25:23.602: I/Unity(15089):  [Play Games Plugin DLL] 10/27/18 15:25:23 -04:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
10-27 15:25:23.602: I/Unity(15089):  
10-27 15:25:23.602: I/Unity(15089): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-27 15:25:23.602: I/Unity(15089):  [Play Games Plugin DLL] 10/27/18 15:25:23 -04:00 DEBUG: Creating platform-specific Play Games client.
10-27 15:25:23.602: I/Unity(15089):  
10-27 15:25:23.602: I/Unity(15089): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-27 15:25:23.602: I/Unity(15089):  [Play Games Plugin DLL] 10/27/18 15:25:23 -04:00 DEBUG: Creating Android IPlayGamesClient Client
10-27 15:25:23.602: I/Unity(15089):  
10-27 15:25:23.602: I/Unity(15089): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)

令我惊讶的是,他们甚至在 2 天前刚刚更新了 google play 游戏服务统一插件,以便它现在可以与更新的 gms 库一起使用,但它仍然对我不起作用。这让我相信这可能是一个不同的问题。任何建议将不胜感激。

谢谢,

标签: unity3dcrashgoogle-play-servicesgoogle-play-gamescrash-reports

解决方案


如果有人遇到此问题,请按照以下步骤操作: https ://github.com/playgameservices/play-games-plugin-for-unity/issues/2217#issuecomment-417619382 非常适合我,您不需要降级任何图书馆!


推荐阅读