Question by
genaray · Sep 23, 2017 at 09:22 PM ·
unity 5google playlogservice
Play Services : Cant register Classes
Hey there !
Im using unity 2017.1.0f3 with the appodeal plugin for ad mediation and i tried to implement google play services 0.9.4.1. But somehow i always encounter this problem here.
GamesUnitySDK: Performing Android initialization of the GPG SDK
GamesNativeSDK: Can't register class com/google/android/gms/games/Games: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/Games$GamesOptions: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/Games$GamesOptions$Builder: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/Player: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/PlayerBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/PlayerLevel: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/PlayerLevelInfo: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/Players: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/Players$LoadPlayersResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/achievement/Achievement: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/achievement/Achievements$LoadAchievementsResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/event/Event: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/event/EventBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/event/Events: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/event/Events$LoadEventsResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/achievement/AchievementBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/achievement/Achievements: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/Leaderboard: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/LeaderboardBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/Leaderboards: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/LeaderboardScore: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/LeaderboardScoreBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/LeaderboardVariant: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/Leaderboards$LeaderboardMetadataResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/leaderboard/Leaderboards$LoadScoresResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Invitation: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/InvitationBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Invitations: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Invitations$LoadInvitationsResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Multiplayer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/Participant: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/ParticipantResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/LoadMatchesResponse: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatch: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatchBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatchConfig: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatchConfig$Builder: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$CancelMatchResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$InitiateMatchResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$LeaveMatchResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$LoadMatchesResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$LoadMatchResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/turnbased/TurnBasedMultiplayer$UpdateMatchResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quest: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/quest/QuestBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quests: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Milestone: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quests$LoadQuestsResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quests$AcceptQuestResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/quest/Quests$ClaimMilestoneResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshot: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotContents: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotMetadata: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataBuffer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshots: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshots$CommitSnapshotResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshots$LoadSnapshotsResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/Snapshots$OpenSnapshotResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataChange: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataChange$Builder: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/stats/PlayerStats: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/stats/Stats: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/stats/Stats$LoadPlayerStatsResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RealTimeMessageReceivedListener: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RealTimeMultiplayer: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RealTimeMessage: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/Room: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RoomConfig: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/multiplayer/realtime/RoomConfig$Builder: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/nearby/Nearby: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/nearby/connection/AppIdentifier: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/nearby/connection/AppMetadata: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/nearby/connection/Connections: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/nearby/connection/Connections$StartAdvertisingResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/video/CaptureState: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/video/VideoCapabilities: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos$CaptureAvailableResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos$CaptureCapabilitiesResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos$CaptureStateResult: an exception occurred.
GamesNativeSDK: Can't register class com/google/android/gms/games/video/Videos$CaptureOverlayStateListener: an exception occurred.
AudioFlinger::EffectModule: EffectModule 0xae103d80 destructor called with unreleased interface
AudioFlinger::EffectHandle: disconnect Effect handle 0xae8ff400 disconnected after thread destruction
Unity : Building GPG services, implicitly attempts silent auth
Unity :
Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Unity :
GamesNativeSDK: Could not register one or more required Java classes.
Unity : InvalidOperationException: There was an error creating a GameServices object. Check for log errors from GamesNativeSDK
Unity : at GooglePlayGames.Native.PInvoke.GameServicesBuilder.Build (GooglePlayGames.Native.PInvoke.PlatformConfiguration configRef) [0x00000] in <filename unknown>:0
Unity : at GooglePlayGames.Native.NativeClient.InitializeGameServices () [0x00000] in <filename unknown>:0
Unity : at GooglePlayGames.Native.NativeClient.Authenticate (System.Action`2 callback, Boolean silent) [0x00000] in <filename unknown>:0
Unity : at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`2 callback, Boolean silent) [0x00000] in <filename unknown>:0
Unity : at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback, Boolean silent) [0x00000] in <filename unknown>:0
Unity : at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback) [0x00000] in <filename unknown>:0
Unity : at GooglePlayGames.PlayGamesLocalUser.Authenticate (System.Action`1 callback) [0x00000] in <filename unknown>:0
Unity : at PlayServiceMan
Unity : Programm Starts
I tried to reinstall the plugin several times. Updated all my sdks to the newest version and checked the .aar files ( all are the same version ) . What the hell im doing wrong ? I also used the Google Play Service Setup multiple times that didnt helped either...
I heard some people talking about a plugins/android/googleplayservice_lib folder, but theres no im my project. All the .aar files are in the /plugins/android dictionary.
I really hope that someone can help me.... how hard can it be to install play services ?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612135417im_/https://answers.unity.com/themes/thub/images/avi.jpg)