playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.47k stars 966 forks source link

DllNotFoundException: gpg when trying to authenticate... #2068

Open nikolaynikolaev013 opened 6 years ago

nikolaynikolaev013 commented 6 years ago

I get the DllNotFoundException: gpg when trying to authenticate the profile. I've tried everything I found on the web and nothing helps me and this is the last thing to fix in our game before publishing... Please help me!

LogCat log:

01-04 13:47:45.686: E/Unity(29079): Unable to find gpg 01-04 13:47:45.793: D/AdsUnity(29079): Calling loadAd() on Android 01-04 13:47:45.924: E/Unity(29079): DllNotFoundException: gpg 01-04 13:47:45.924: E/Unity(29079): at (wrapper managed-to-native) GooglePlayGames.Native.Cwrapper.Builder:GameServices_Builder_Construct () 01-04 13:47:45.924: E/Unity(29079): at GooglePlayGames.Native.PInvoke.GameServicesBuilder.Create () [0x00000] in :0 01-04 13:47:45.924: E/Unity(29079): at GooglePlayGames.Native.NativeClient.InitializeGameServices () [0x00000] in :0 01-04 13:47:45.924: E/Unity(29079): at GooglePlayGames.Native.NativeClient.Authenticate (System.Action2 callback, Boolean silent) [0x00000] in <filename unknown>:0 01-04 13:47:45.924: E/Unity(29079): at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action2 callback, Boolean silent) [0x00000] in :0 01-04 13:47:45.924: E/Unity(29079): at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action1 callback, Boolean silent) [0x00000] in <filename unknown>:0 01-04 13:47:45.924: E/Unity(29079): at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action1 callback) [0x00000] in :0 01-04 13:47:45.924: E/Unity(29079): at GooglePlayGames.PlayGamesLocalUser.Authenticate (System.Action`1 callback) [0x00000] in :0 01-04 13:47:45.924: E/Unity(29079): at InitialiseAdmobAndGPG.InitialiseGPS () [0x00000] in <filename 01-04 13:47:46.000: W/Unity(29079): !!! [Play Games Plugin DLL] 01/04/18 13:47:45 +02:00 WARNING: Creating new PlayGamesPlatform 01-04 13:47:46.000: W/Unity(29079):
01-04 13:47:46.000: W/Unity(29079): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Thank you in advance! :)

claywilkinson commented 6 years ago

This looks like the native library libgpg.so is not included in your build. Can you confirm what is in your Assets/Plugins/Android directory, and also look in the generated .apk to see if the library is being included in the build.

nikolaynikolaev013 commented 6 years ago

I've screenshotted everything in my Assets/Plugins/Android directory and everything in the .apk file, starting with "lib" in its name and it seems that I don't have the library. What now? Thank you again, @claywilkinson ! :)

image image image image

nikolaynikolaev013 commented 6 years ago

Will someone help me, please? This is one of the most important things and my game is missing it right now. @claywilkinson

chetanpeel commented 5 years ago

@nikolaev013 Did you get any solution?