2017-11-14 6 views
0

ein Freund und ich bin ein Spiel in der Einheit für Android zu entwickeln, und wir wollen einige Bestenlisten mit dem Google Play Games Service umfassen, aber wir können die Login arbeitet nicht bekommen.DllNotFoundException: gpg

Wir verwenden für die Anmeldung des Skript MainGui aus dem minimalen Beispielprojekt des Google Game Plugin spielen. Wenn wir die authenticate Taste drücken sagen hält „Authentifizierung“:

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."; 
       } 
      }); 
     } 

im logcat Sehen, gibt es einen Fehler:

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 

Wir haben stundenlang gesucht und versucht, andere Antworten sowie entfernt und neu hinzugefügt das Plugin zum Projekt, überprüft die API-Tasten, von einem anderen Computer, etc.

Antwort

0

Ein ähnliches Problem wird ausgelöst und markiert in der Play-Games-für-Einheit-Repo von 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

+1

Diese Lösung funktioniert nicht mehr als die build_plugin.sh nicht in der aktuellen Version nicht vorhanden ist. –

Verwandte Themen