libGDX Google Play 游戏服务 - Android
本文介绍了libGDX Google Play 游戏服务 - Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将 Google play 游戏服务实施到 libGDX 项目中.在我的 android 项目中,MainActivity 如下所示:
I am trying to implement Google play Game Services into libGDX project. In my android project, the MainActivity looks like this:
当我尝试在 android 设备上运行应用程序时,我最终在 logcat 中出现 IllegalStateException 错误:
When I try to run the application on android device, I end up with IllegalStateException error in the logcat:
有什么帮助吗??
我已经在清单文件中有元数据标签
I already have the meta-data tag in the manifest file
推荐答案
已解决,我开启了adb logcat,发现manifest文件中又少了一个元数据标签:
Solved, I enabled adb logcat and found that there is another metadata tag missing in the manifest file:
刚刚添加了这个标签,它工作正常.
Just added this tag and it is working properly.
这篇关于libGDX Google Play 游戏服务 - Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!