首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >统一android主板登录

统一android主板登录
EN

Stack Overflow用户
提问于 2017-09-30 12:21:02
回答 1查看 230关注 0票数 0

我是第一次在统一平台上开发的android游戏中实现google的领导板。我认为我做的一切都是正确的(根据我所关注的一些教程),但当我尝试登录到谷歌游戏游戏服务时,我得到了以下例外:“使用google游戏服务需要在清单的应用程序标记中有一个名为"com.google.android.gms.games.APP_ID”的元数据标记。缺少在清单的应用程序标记中有名称"com.google.android.gms.appstate.APP_ID“的元数据标记。”当元数据标记在那里时

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.example.games.mainlibproj"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" />

<application>

 <!-- Required for Nearby Connections API -->
    <meta-data android:name="com.google.android.gms.nearby.connection.SERVICE_ID"
        android:value="" />

    <!-- The space in these forces it to be interpreted as a string vs. int -->
    <meta-data android:name="com.google.android.gms.games.APP_ID"
        android:value="\ 686*********" />

    <!-- Keep track of which plugin is being used -->
    <meta-data android:name="com.google.android.gms.games.unityVersion"
        android:value="\ 0.9.41" />

    <!-- Build time check to make sure play-services libraries are present -->
    <meta-data android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
</application>

这里有什么问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-10-02 09:12:41

经过两天的挣扎,我得到了这个解决方案,它是GooglePlayGamesPlugin-0.9.41的一个bug,而在降级到0.9.38a版本之后,它就像预期的那样工作了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46502647

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档