Play-games-plugin-for-unity: Could not register one or more required Java classes.

Created on 18 Sep 2016  路  6Comments  路  Source: playgameservices/play-games-plugin-for-unity

Hi! When Ive updated Unity to 5.4 (last update 5.4.0p4) and Play Games Plugin to 0.9.34, my app cant connect to Google Play Games. GamesNativeSDK logs:

E/GamesNativeSDK(26739): Can't register class com/google/android/gms/games/multiplayer/ParticipantResult: an exception occurred.

E/GamesNativeSDK(26739): Can't register class com/google/android/gms/nearby/connection/AppIdentifier: an exception occurred.

E/GamesNativeSDK(26739): Can't register class com/google/android/gms/nearby/connection/AppMetadata: an exception occurred.

E/GamesNativeSDK(26739): Could not register one or more required Java classes.

Thats it. Ive tried everything - removed plugin, updated all libs in Android SDK Manager, removed Android/libs from project, imported plugin to the clean project. But nothing good for me!

All the time console logs this errors, which are above.

Could somebody help me?

Most helpful comment

Absolutely the same problem. Occures just after PlayGamesPlatform.Instance.Authenticate invokation.
Any solutions?

All 6 comments

Absolutely the same problem. Occures just after PlayGamesPlatform.Instance.Authenticate invokation.
Any solutions?

I found it strange that only play-services-games & play-services-nearby libs were upgraded to 9+ version but not play-services-base & play-services-basement (they are 8.4). I tried to force their upgrade via manual replacement in Plugin/Android folder. It helped a little and authorization stage was passed but crashed somewhere later. Probably the crash was just specific for my project

@claywilkinson Any clues?

@putyavka Connected issue: https://github.com/playgameservices/play-games-plugin-for-unity/issues/1411

@putyavka Please let me know when you have solution.

@Fortis9777 Consider using apostrophe instead of back-tick, so Markdown won't break formatting of your text.

All the .aar files need to be the same version. The new version of the plugin 0.9.35, contains an updated resolver which will work much better.

Disable minification in player settings. It worked for me. It is probably a proguard issue. I think some proguard keep rules are needed for this plugin.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rheros picture rheros  路  5Comments

hippogamesunity picture hippogamesunity  路  5Comments

parkJeongOck picture parkJeongOck  路  4Comments

YogendraChauhan picture YogendraChauhan  路  4Comments

mattr-swol picture mattr-swol  路  4Comments