Android Google Play服务和Unity3D错误

Android Google Play服务和Unity3D错误,android,unity3d,google-play-services,Android,Unity3d,Google Play Services,我过去常常在游戏中获得成就和排行榜,但当我尝试调用Google Play登录时,我出现了一个错误: E/GamesNativeSDK﹕ Exception in dalvik/system/DexClassLoader.loadClass: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.games.NativeSdkEntryPoints" on path: DexPathList[[zip

我过去常常在游戏中获得成就和排行榜,但当我尝试调用Google Play登录时,我出现了一个错误:

E/GamesNativeSDK﹕ Exception in dalvik/system/DexClassLoader.loadClass: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.games.NativeSdkEntryPoints" on path: DexPathList[[zip file "/data/data/com.crazylabs.tabreak/app_.gpg.classloader/de80b70ed0da0dfe988a41fa560612ee.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]].
06-19 18:02:45.058  25436-27013/? E/ValidateServiceOp﹕ Missing metadata tag with the name "com.google.android.gms.appstate.APP_ID" in the application tag of the manifest for com.company.game
06-19 18:02:45.105  25436-27012/? E/ValidateServiceOp﹕ Using Google Play games services requires a metadata tag with the name "com.google.android.gms.games.APP_ID" in the application tag of the manifest for
Android清单:

....
 <meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="xxxxxxxxxxxxx" />
....
。。。。
....

您正在使用
com.google.android.gms.appstate.APP\u ID
,错误提示您需要
com.google.android.gms.games.APP\u ID

另外:确保将元数据标记放置在清单中的
标记中

最后,您应该使用strings文件夹中的app id作为
android:value
属性。最后应该是这样的:

<application>
    ...
    <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />
    ....
</application>

...
....
希望有帮助