2017-11-14 20 views
0

친구와 저는 Android 용 Unity에서 게임을 개발 중입니다. Google Play 게임 서비스에 리더 보드를 포함하고 싶지만 로그인이 작동하지 않습니다.DllNotFoundException : gpg

Google Play 게임 플러그인의 최소 샘플 프로젝트에서 MainGui 스크립트를 사용하여 로그인합니다. 우리가 말하는 그것을 유지하는 인증하고 버튼을 누르면 "인증"우리는 다른 답변뿐만 아니라 시간 검색 및 시도 된

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 

:

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

가 로그 캣에서 보면, 오류가 플러그인을 제거하고 프로젝트에 다시 추가하고, 다른 컴퓨터 등으로 만든 api 키를 확인하십시오.

답변

0

비슷한 문제가 발생하여 playService의 un-game-for-unity-repo에서 비슷한 것으로 표시됩니다. 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

현재 버전에서는 build_plugin.sh가 존재하지 않으므로이 솔루션은 더 이상 작동하지 않습니다. –