Thursday 15 May 2014

Unity3D Google Play Games: NoSuchMethodError when calling Authenticate -



Unity3D Google Play Games: NoSuchMethodError when calling Authenticate -

i using google play services plugin unity3d next source https://github.com/playgameservices/play-games-plugin-for-unity

when seek show leaderboards or achievements message:

it seems authenticate returns false.

right user able log in google play.

10-11 11:39:17.972 i/unity (16208): androidjavaexception: java.lang.nosuchmethoderror: no method name='getclass' signature='()ljava/lang/object;' in class lcom/google/android/gms/common/api/b; 10-11 11:39:17.972 i/unity (16208): @ unityengine.androidjnisafe.checkexception () [0x00000] in :0 10-11 11:39:17.972 i/unity (16208): @ unityengine.androidjnisafe.getmethodid (intptr obj, system.string name, system.string sig) [0x00000] in :0 10-11 11:39:17.972 i/unity (16208): @ unityengine._androidjnihelper.getmethodid (intptr jclass, system.string methodname, system.string signature, boolean isstatic) [0x00000] in :0 10-11 11:39:17.972 i/unity (16208): @ unityengine.androidjnihelper.getmethodid (intptr javaclass, system.string methodname, system.string signature, boolean isstatic) [0x00000] in :0 10-11 11:39:17.972 i/unity (16208): @ unityengine._androidjnihelper.getmethodidandroidjavaobject [0x00000] in :0 10-11 11:39:17.972 i/unity (16208): @ unityengine.androidjnihelper.getmethodid[androidjavaobject] (intptr jclass, system.string methodname, system.object[] arg 10-11 11:39:19.617 w/activitymanager(2155): activity pause timeout activityrecord{4232ec38 co.uk.gringames.hungrybobproject/com.unity3d.player.unityplayernativeactivity} 10-11 11:39:38.747 i/unity (16208): androidjavaexception: java.lang.nosuchmethoderror: no method name='getclass' signature='()ljava/lang/object;' in class lcom/google/android/gms/common/api/b; 10-11 11:39:38.747 i/unity (16208): @ unityengine.androidjnisafe.checkexception () [0x00000] in :0 10-11 11:39:38.747 i/unity (16208): @ unityengine.androidjnisafe.getmethodid (intptr obj, system.string name, system.string sig) [0x00000] in :0 10-11 11:39:38.747 i/unity (16208): @ unityengine._androidjnihelper.getmethodid (intptr jclass, system.string methodname, system.string signature, boolean isstatic) [0x00000] in :0 10-11 11:39:38.747 i/unity (16208): @ unityengine.androidjnihelper.getmethodid (intptr javaclass, system.string methodname, system.string signature, boolean isstatic) [0x00000] in :0 10-11 11:39:38.747 i/unity (16208): @ unityengine._androidjnihelper.getmethodidandroidjavaobject [0x00000] in :0 10-11 11:39:38.747 i/unity (16208): @ unityengine.androidjnihelper.getmethodid[androidjavaobject] (intptr jclass, system.string methodname, system.object[] arg

//leaderboard strings private string leaderboard = "sasaa"; //achievement strings // utilize initialization void awake() { playgamesplatform.activate(); } public void googleplaygames(string process) { if (process == "login") { social.localuser.authenticate ((bool success) => { if (success) { debug.log ("you've logged in"); } else { debug.log ("login failed reason"); } }); } else if (process == "lead") { if (!social.localuser.authenticated) { }else{ ((playgamesplatform)social.active).showleaderboardui (leaderboard); } } }

please help!

kind regards,

daniel

i ran same problem today. apparently there update committed github repository on 13th (see https://github.com/playgameservices/play-games-plugin-for-unity/commit/eb70764bf8795de051520b3262745ef35c204c17#diff-bedb7e4c95811a7313c6e4ba5f18875f ) appears prepare problem. merged changes head , app ran ok.

unity3d google-play-games nosuchmethoderror

No comments:

Post a Comment