playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 962 forks source link

DllNotFoundException: gpg #287

Closed mkolinichenko closed 9 years ago

mkolinichenko commented 9 years ago

I'm getting DllNotFoundException with 0.9.10 on Android device in GooglePlayGames.Native.PInvoke.GameServicesBuilder.Create() while calling Social.localUser.Authenticate. Where is that dll?

mrggl commented 9 years ago

Which android device running which version of the OS are seeing this on?

The library should be included as part of the plugin - you can verify this by unpacking your game APK and looking for libgpg.so. Let us know if this is not the case, as that would indicate something going wrong during the build process.

toggiee commented 9 years ago

I get same error on Galaxy note phone and Android 4.1.2. I install same apk to Nexus 5 (os: android 5) and it works perfectly.

nosmirck commented 9 years ago

I'm having the same problem, I checked my .apk and there is a libgpg.so under /lib.

I'm following all the steps in the tutorial, using the "Minimal" example and the app is installing with no errors, when it runs, I tap on the "Authenticate" and the label changes to "Authenticating..." but nothing else happens, even after minutes it stuck there. The device I'm testing is a Samsung Galaxy S4 mini Duos, 4.2.2, Google Play Services version: 6.1.88 (1557022-034) stock.

I checked with adb logcat and this is the result:

E/Unity (31593): Unable to find gpg E/Unity (31593): Unable to find gpg I/Unity (31593): DllNotFoundException: gpg I/Unity (31593): at (wrapper managed-to-native) GooglePlayGames.Native.Cwrapper.Builder:GameServices_Builder_Construct () I/Unity (31593): at GooglePlayGames.Native.PInvoke.GameServicesBuilder.Create () [0x00000] in :0 I/Unity (31593): at GooglePlayGames.Native.NativeClient.InitializeGameServices () [0x00000] in :0 I/Unity (31593): at GooglePlayGames.Native.NativeClient.Authenticate (System.Action`1 callback, Boolean silent) [0x00000] in :0 I/Unity (31593): at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback, Boolean silent) [0x00000] in :0 I/Unity (31593): at GooglePlayGames.PlayGamesPlatform.Authenticate (System.Action`1 callback) [0x00000] in :0 I/Unity (31593): at GooglePlayGames.PlayGamesLocalUser.Authenticate (System.Action`1 callback) [0x00000] in :0 I/Unity (31593): at MainGui.OnGUI () [0x00000] in :0 I/Unity (31593): I/Unity (31593): (Filename: Line: -1)
I used another device after (installing the same apk) this time was a rooted Samsung Galaxy S3 with 4.4.4 cyanogen mod 11 from a friend and it worked great, it authenticated and gave no errors I also tried with a BLU Quattro 4.5 HD, Android 4.0.4, Google Play Services 6.5.87 (1599771-036) and didn't work. How can we solve this? Thanks in advance for any help! you guys are doing a great work!
mrggl commented 9 years ago

Hi guys,

I've posted a list of steps that might address this issue here:

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

Can you give that a shot and see if it helps?

mrggl commented 9 years ago

Also, I'm closing the issue in favor of the other - lets centralize communication there.

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

Thanks.