我是第一次在统一平台上开发的android游戏中实现google的领导板。我认为我做的一切都是正确的(根据我所关注的一些教程),但当我尝试登录到谷歌游戏游戏服务时,我得到了以下例外:“使用google游戏服务需要在清单的应用程序标记中有一个名为"com.google.android.gms.games.APP_ID”的元数据标记。缺少在清单的应用程序标记中有名称"com.google.android.gms.appstate.APP_ID“的元数据标记。”当元数据标记在那里时
<?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>
这里有什么问题吗?
发布于 2017-10-02 09:12:41
经过两天的挣扎,我得到了这个解决方案,它是GooglePlayGamesPlugin-0.9.41的一个bug,而在降级到0.9.38a版本之后,它就像预期的那样工作了。
https://stackoverflow.com/questions/46502647
复制相似问题