【问题标题】:Exception running command on UI threadUI线程上的异常运行命令
【发布时间】:2015-08-07 14:44:22
【问题描述】:

我为 GooglePlayGameServices 添加了 Prime31 插件,但它不想进行身份验证并发送错误:“UI 线程上的异常运行命令”

if( GUILayout.Button( "Authenticate" ) )
            {
                PlayGameServices.authenticate();
            }

public static void authenticate()
        {
            if( Application.platform != RuntimePlatform.Android )
                return;

            _plugin.Call( "authenticate" );
        }

我完成了所有this 教程步骤。

【问题讨论】:

    标签: unity3d google-play-games prime31


    【解决方案1】:

    请确保您使用的是Activity Sharing System。而且 r21 Google Play SDK 现在要求您使用 JDK 1.7 或更高版本进行编译。它不会与较旧的 JDK 版本一起编译。 r21 Play SDK 也有一个关于静默身份验证的错误。由于 Play SDK 中的错误,我们不得不在 2.10 版插件中关闭自动静默身份验证。当您准备好实际验证用户或验证方法时,可以使用 beginSilentAuthentication 方法。

    【讨论】:

      猜你喜欢
      • 2011-01-22
      • 2021-04-15
      • 1970-01-01
      • 2015-04-03
      • 2021-02-27
      • 2012-10-07
      • 2023-03-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多