SDKBox google crash at login

SDKBox google crash at login
0

Hello,
My game’s always crashed when loging in using google services

Here are my game lib versions

  • cocos2dx v3.17.2
  • sdkbox GUI v 1.1.7
    And the logs are in the attachment.

Seem like the game had problems when GPG service inits itsefl.
Here are GPG init logs:

I/SDKBOX_GPG: SDKBOX<->GPG Initialization with jni_onload.
I/Choreographer: Skipped 66 frames!  The application may be doing too much work on its main thread.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/ConnectionResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/GooglePlayServicesUtil: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/Api: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/Api$ApiOptions: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/Api$ApiOptions$HasOptions: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/GoogleApiClient: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/GoogleApiClient$Builder: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/PendingResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/Result: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/ResultCallback: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/Scope: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/api/Status: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/common/data/DataBufferUtils: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/Games: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/Games$GamesOptions: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/Games$GamesOptions$Builder: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/Player: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/PlayerBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/PlayerLevel: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/PlayerLevelInfo: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/Players: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/Players$LoadPlayersResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/achievement/Achievement: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/achievement/Achievements$LoadAchievementsResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/event/Event: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/event/EventBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/event/Events: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/event/Events$LoadEventsResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/achievement/AchievementBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/achievement/Achievements: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/Leaderboard: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/LeaderboardBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/Leaderboards: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/LeaderboardScore: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/LeaderboardScoreBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/LeaderboardVariant: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/Leaderboards$LeaderboardMetadataResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/Leaderboards$LoadScoresResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Invitation: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/InvitationBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Invitations: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Invitations$LoadInvitationsResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Multiplayer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Participant: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/ParticipantResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/LoadMatchesResponse: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatch: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatchBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatchConfig: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatchConfig$Builder: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$CancelMatchResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$InitiateMatchResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$LeaveMatchResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$LoadMatchesResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$LoadMatchResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$UpdateMatchResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quest: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/quest/QuestBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quests: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Milestone: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quests$LoadQuestsResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quests$AcceptQuestResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quests$ClaimMilestoneResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshot: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotContents: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotMetadata: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataBuffer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshots: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshots$CommitSnapshotResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshots$LoadSnapshotsResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshots$OpenSnapshotResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataChange: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataChange$Builder: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/stats/PlayerStats: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/stats/Stats: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/stats/Stats$LoadPlayerStatsResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RealTimeMessageReceivedListener: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RealTimeMultiplayer: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RealTimeMessage: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/Room: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RoomConfig: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RoomConfig$Builder: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/nearby/Nearby: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/nearby/connection/AppIdentifier: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/nearby/connection/AppMetadata: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/nearby/connection/Connections: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/nearby/connection/Connections$StartAdvertisingResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/video/CaptureState: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/video/VideoCapabilities: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos$CaptureAvailableResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos$CaptureCapabilitiesResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos$CaptureStateResult: an exception occurred.
E/GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos$CaptureOverlayStateListener: an exception occurred.
D/cocos2d-x debug info: ##GG> Uninitialized services, so creating
E/GamesNativeSDK: Could not register one or more required Java classes.
D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
V/SoundPool: SoundPool constructor: maxChannels=5, attr.usage=1, attr.flags=0x0, attr.tags=
V/SoundPool: autoResume()

please check the log file for the details

Could anyone please support me?
Thank you.

log_crash_gpg.zip (6.1 KB)

@SDKBOX team: Could you help me please?
The sample project (https://github.com/sdkbox/sdkbox-sample-gpg) is out dated. I can’t try to test on it too. :frowning:

We can ask @yinjimmy to take a look.

2 Likes

I’ll check it when I back to work.

1 Like

Hello,
This is my fault.
I called the GPG init function in the SplashScreen:init() instead of AppDelegate::applicationDidFinishLaunching (from the doc: http://docs.sdkbox.com/en/plugins/googleplay/v3-cpp/#initialize-google-play-games)
Affer changed, It has gone.
Thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.