Android crash on GooglePlayServices (Games) connect

给你一囗甜甜゛ 提交于 2019-12-01 11:02:03
AL.

Looked around the community for similar posts and found this answer, check it out. Gonna go straight to the point, I think the cause of this issue is in your AndroidManifest.xml. As mentioned in the answer, the <meta-data> tag should be added, yours is there, but the name is different. It shows as:

android:name="com.google.android.gms.games.onl.deepspace.zoorallye"

while in the answer above, it shows:

android:name="com.google.android.gms.games.APP_ID"

Went to the Google Quickstart samples and notice that all of the tags are like the above. Haven't seen anything else in your code that's causing the issue. Hope this helps. Good luck.

I believe this might be related to missing the com.google.android.gms.games.APP_ID metadata element in your AndroidManifest.xml

It looks like a typo (you replaced APP_ID with your package name?). It should be: <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />

You can refer to TypeANumber basic sample's AndroidManifest.xml https://github.com/playgameservices/android-basic-samples/blob/master/BasicSamples/TypeANumber/src/main/AndroidManifest.xml#L41

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!