App Crash в Google Play Игры Сервисы Войти - PullRequest
0 голосов
/ 27 октября 2018

Я пытаюсь протестировать игровые сервисы google play в моей игре, но всякий раз, когда я пытаюсь войти в сервис, моя игра «перестает работать», как при сбоях.Я пытаюсь решить эту проблему с помощью logcats, отправляемых на монитор устройства Android, но он не говорит мне, что не так с игровыми сервисами 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)

К моему удивлению, они даже только что обновилисьплагин google play игровых сервисов Unity 2 дня назад, так что теперь он работает с новыми библиотеками gms, но все равно не будет работать для меня.Это приводит меня к мысли, что это, вероятно, другая проблема.Любой совет будет очень признателен.

Спасибо,

1 Ответ

0 голосов
/ 28 октября 2018

Если у кого-то возникла эта проблема, пожалуйста, следуйте инструкциям: https://github.com/playgameservices/play-games-plugin-for-unity/issues/2217#issuecomment-417619382 Отлично сработало для меня, и вам не нужно понижать ни одну из библиотек!

...