Home DllNotFoundException: gpg
Reply: 1

DllNotFoundException: gpg

Aurelio Puerta Martín
1#
Aurelio Puerta Martín Published in 2017-11-14 22:17:34Z

a friend and I are developing a game in Unity for Android, and we want to include some leaderboards with the Google Play Games Services, but we can't get the login to work.

We are using for the login the script MainGui from the minimal sample project of the Google Play Games Plugin. When we press the authenticate button it keeps saying "authenticating":

if (!Social.localUser.authenticated)
        {
            // Authenticate
            mWaitingForAuth = true;
            mStatusText = "Authenticating...";
            Social.localUser.Authenticate((bool success) =>
            {
                mWaitingForAuth = false;
                if (success)
                {
                    mStatusText = "Welcome " + Social.localUser.userName;
                }
                else
                {
                    mStatusText = "Authentication failed.";
                }
            });
        }

Looking in the logcat, there is an error:

E/Unity: DllNotFoundException: gpg
at (wrapper managed-to-native) GooglePlayGames.Native.Cwrapper.Builder:GameServices_Builder_Construct ()
at GooglePlayGames.Native.PInvoke.GameServicesBuilder.Create () [0x00000] in <filename unknown>:0 
at GooglePlayGames.Native.NativeClient.InitializeGameServices () [0x00000] in <filename unknown>:0 
at GooglePlayGames.Native.NativeClient.Authenticate (System.Action`2 callback, Boolean silent) [0x00000] in <filename unknown>:0 
at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`2 callback, Boolean silent) [0x00000] in <filename unknown>:0 
at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback, Boolean silent) [0x00000] in <filename unknown>:0 
at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback) [0x00000] in <filename unknown>:0 
at GooglePlayGames.PlayGamesLocalUser.Authenticate (System.Action`1 callback) [0x00000] in <filename unknown>:0 
at LogInAndroid.OnGUI () [0x00000] in <filename unknown>:0 

We have been searching for hours and tried other answers as well as removed and re-added the plugin to the project, checked the api keys, built from a different computer, etc.

premkamal008
2#
premkamal008 Reply to 2017-11-14 22:41:23Z

A similar issue is raised and marked closed in the play-games-for-unity-repo by playService : https://github.com/playgameservices/play-games-plugin-for-unity/issues/287

The solution to it that has worked for a few people can be found here. Check the steps mentioned here?

https://github.com/playgameservices/play-games-plugin-for-unity/issues/280#issuecomment-64280552

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.520617 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO