统一设置Google Play服务时出错 [英] Error in setting up Google play services in unity

查看:378
本文介绍了统一设置Google Play服务时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照 Google Play游戏插件的统一性的说明,我无法正确设置它。我的应用程序在登录时崩溃,并输出以下日志(没有更多详细信息)。我没有找到可能的原因,搜索似乎没有任何有用的提示。

Following the instruction on google play games plugin for unity, I have not been able to set it up correctly. My application crashes on signing in, with the following log output (with no more details). I've got no luck in finding a probable cause and searches seems to be out of any useful tip.

实际的错误显示为:

Application ID () must be a numeric value. Please verify that your manifest refers to the correct project ID

完整的日志输出:

10-08 19:43:49.581 25688-25734/? E/linker: readlink('/proc/self/fd/49') failed: Permission denied [fd=49]
10-08 19:43:49.581 25688-25734/? E/linker: warning: unable to get realpath for the library "/data/data/com.testcompany.testapp/app_.gpg.classloader/d75c8e1bbeab9e1ddffb9d332585db71.dex". Will use given name.
10-08 19:43:49.667 25688-25734/? W/PopupManager: You have not specified a View to use as content view for popups. Falling back to the Activity content view. Note that this may not work as expected in multi-screen environments
10-08 19:43:49.675 25688-26526/? I/GamesNativeSDK: Auth operation started: SIGN IN
10-08 19:43:49.675 25688-26526/? I/GamesNativeSDK: Connecting to Google Play...
10-08 19:43:49.802 10946-10956/? W/GamesServiceBroker: Client connected with SDK 9683000, Services 9683438, and Games 37240038
10-08 19:43:49.837 10946-26540/? E/ValidateServiceOp: Application ID () must be a numeric value. Please verify that your manifest refers to the correct project ID.
10-08 19:43:49.842 25688-25688/? D/AndroidRuntime: Shutting down VM
10-08 19:43:49.846 25688-25688/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: com.testcompany.testapp, PID: 25688
                                                   java.lang.Error: FATAL EXCEPTION [main]
                                                   Unity version     : 5.4.0f3
                                                   Device model      : LGE Nexus 5
                                                   Device fingerprint: google/hammerhead/hammerhead:6.0/MRA58K/2256973:user/release-keys

                                                   Caused by: java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
                                                       at com.google.android.gms.common.internal.zze$zza.zzc(Unknown Source)
                                                       at com.google.android.gms.common.internal.zze$zza.zzv(Unknown Source)
                                                       at com.google.android.gms.common.internal.zze$zze.zzauc(Unknown Source)
                                                       at com.google.android.gms.common.internal.zze$zzd.handleMessage(Unknown Source)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:148)
                                                       at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

我已经采取了生成OAuth2客户端ID所需的步骤,并且已经成功将它应用于GooglePlayGame插件。错误消息的原因是什么?

I've taken the steps needed to generate OAuth2 client ID and I've successfully applied that to GooglePlayGame plugin in unity. What could be the reason of the error message?

推荐答案

这个问题是由Google Play服务中的多个应用程序配置引起的。尽管游戏服务面板仅显示一个包含我的包名称的应用程序,但之前在谷歌云服务中配置了相同应用程序的多个实例,以前用于Google云消息传递和其他服务。只有关闭所有服务,删除应用程序,并耐心地在Google play服务中创建一个统一的应用程序配置,才能解决问题。

The problem was caused by multiple application configurations in Google play services. Although the game services panel was showing only one application with my package name, there were several instances of the same application configured in google cloud services previously for google cloud messaging and other services. The problem was only solved when I shut down all services, deleted the applications and patiently created one unified application configuration in Google play services.

这篇关于统一设置Google Play服务时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆