使用Google Play游戏Unity插件进行身份验证

时间:2014-03-26 15:19:22

标签: android unity3d google-play-games

我正在尝试在Unity 4.3.4设置中运行“Minimal”示例应用程序。当我点击“验证”按钮时;它坚持消息“认证......”。我在logcat中有这个;

  

03-26 02:47:40.758:W / dalvikvm(2410):DexOpt:方法是在   interface 03-26 02:47:40.758:I / dalvikvm(2410):找不到方法   com.google.android.gms.common.api.GoogleApiClient.isConnected,   从方法中引用   com.google.example.games.basegameutils.GameHelper.beginUserInitiatedSignIn   03-26 02:47:40.758:W / dalvikvm(2410):VFY:无法解析虚拟   方法2445:   Lcom / google / android / gms / common / api / GoogleApiClient; .isConnected()Z   03-26 02:47:40.758:W / dalvikvm(2410):VFY:拒绝操作码0x6e at   0x0010 03-26 02:47:40.758:W / dalvikvm(2410):VFY:拒绝   LCOM /谷歌/示例/游戏/ basegameutils / GameHelper; .beginUserInitiatedSignIn   ()V 03-26 02:47:40.758:W / dalvikvm(2410):Verifier拒绝上课   LCOM /谷歌/示例/游戏/ basegameutils / GameHelper; 03-26   02:47:41.138:I / Unity(2410):AndroidJavaException:   抛出java.lang.ClassNotFoundException:   com.google.example.games.basegameutils.GameHelper 03-26 02:47:41.138:   I / Unity(2410):在UnityEngine.AndroidJNISafe.CheckException()   [0x00000] in:0 03-26 02:47:41.138:I / Unity(2410):   在UnityEngine.AndroidJNISafe.CallStaticObjectMethod(IntPtr clazz,   IntPtr methodID,UnityEngine.jvalue [] args)[0x00000] in:0 03-26 02:47:41.138:I / Unity(2410):at   UnityEngine.AndroidJavaObject._CallStatic [AndroidJavaObject]   (System.String methodName,System.Object [] args)[0x00000] in   :0 03-26 02:47:41.138:I / Unity(2410):at   UnityEngine.AndroidJavaObject.CallStatic [AndroidJavaObject]   (System.String methodName,System.Object [] args)[0x00000] in   :0 03-26 02:47:41.138:I / Unity(2410):at   UnityEngine.AndroidJavaObject.FindClass(System.String name)[0x00000]   in:0 03-26 02:47:41.138:I / Unity(2410):at   UnityEngine.AndroidJavaObject。 AndroidJavaObject(System.String   className,System.Object [] args)[0x00000] in:0   03-26 02:47:41.138:I / Unity(2410):at   UnityEngine.AndroidJavaObject..ctor(System.String className,   System.Object [] args)[0x00000] in:0 03-26   02:47:41.138:I / Unity(2410):在GooglePlayGames.A 03-26   02:47:41.148:I / Unity(2410):NullReferenceException:对象引用   未设置为对象的实例03-26 02:47:41.148:I / Unity(2410):   在   GooglePlayGames.Android.AndroidClient + C _AnonStorey0<> m__1   ()[0x00000] in:0 03-26 02:47:41.148:   I / Unity(2410):在UnityEngine.AndroidJavaRunnableProxy.run()   [0x00000] in:0 03-26 02:47:41.148:I / Unity(2410):   在System.Reflection.MonoMethod.Invoke(System.Object obj,   BindingFlags invokeAttr,System.Reflection.Binder binder,   System.Object []参数,System.Globalization.CultureInfo文化)   [0x00000] in:0 03-26 02:47:41.148:I / Unity(2410):   将Rethrow作为TargetInvocationException:   UnityEngine.AndroidJavaRunnableProxy.run()03-26 02:47:41.148:   I / Unity(2410):在UnityEngine.AndroidJavaProxy.Invoke(System.String   methodName,System.Object [] args)[0x00000] in:0   03-26 02:47:41.148:I / Unity(2410):at   UnityEngine.AndroidJavaProxy.Invoke(System.String methodName,   UnityEngine.AndroidJavaObject [] javaArgs)[0x00000] in:0 03-26 02:47:41.148:I / Unity(2410):at   UnityEngine._AndroidJNIHelper.InvokeJavaProxyMethod   (UnityEngine.AndroidJavaProxy代理,IntPtr jmethodName,IntPtr jargs)   [0x00000] in:0

有什么想法吗?

0 个答案:

没有答案