当调用 Google Play 登录时 Libgdx 游戏退出

标签 libgdx admob google-play-services

您好,我在 LibGx 中制作了游戏,并集成了 Google Play 服务来获取成就和排行榜 我发布了游戏,一切都很好

然后我决定整合Admob

现在,当我尝试登录时,我的应用程序退出并出现此错误,并且等待暂停同步花费的时间太长;假设死锁并终止 google play 游戏服务

日志中类似这样

09-01 18:50:07.014: E/Volley(1005): [142] tm.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/114331978856382749964?language=en_IN
    09-01 18:50:07.065: W/GLSUser(672): GoogleAccountDataService.getToken()
    09-01 18:50:07.088: D/IPCThreadState(1005): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x5c1e8808
    09-01 18:50:07.098: I/SurfaceFlinger(124): [SurfaceFlinger] fps:66.609230,dur:1005.87,max:54.44,min:2.09
    09-01 18:50:07.140: E/SignInIntentService(1005): Access Not Configured. Please use Google Developers Console to activate the API for your project.
    09-01 18:50:07.140: E/SignInIntentService(1005): exe
    09-01 18:50:07.140: E/SignInIntentService(1005):    at eqe.a(SourceFile:146)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at dvt.a(SourceFile:580)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at dvt.a(SourceFile:561)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at dug.a(SourceFile:850)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at eyi.a(SourceFile:251)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:390)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at android.os.Handler.dispatchMessage(Handler.java:99)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at android.os.Looper.loop(Looper.java:153)
    09-01 18:50:07.140: E/SignInIntentService(1005):    at android.os.HandlerThread.run(HandlerThread.java:60)

这里有人知道如何在 libgdx 游戏中将 admob 和 google play 服务集成在一起吗?

最佳答案

在浏览了很多网站之后,我没有找到解决此问题的方法

但我通过其他方式通过更改我为 GPGS 和 admob 执行的方法调用的顺序来实现它

现在我先设置 ip admob,然后添加一个按钮来登录 GPGS 之前我是在 onCreate 中这样做的......

干杯......

关于当调用 Google Play 登录时 Libgdx 游戏退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25606924/

相关文章:

java - 两个 vector/点之间的角度

java - LibGDX - batch.begin(); 之间有什么不同?和 renderer.getBatch().begin();?

android - Google Play 服务 - API 版本 6 太高

java - libGDX:如何检测滚动 Pane 是否在最大 Y 处滚动?

android - Google Play 上的沙盒模式?

android - 有什么方法可以在 Android Recycler View 中显示 Google Admob

android - 我可以从哪里更改已在 App Store 中的应用程序的刷新率?

google-play - Google Play 服务 iOS SDK : Insufficient Permission

android - Google Play 服务 DriveApi 更改文件父级

java - 如何在 libgdx 上使用 SQLite(仅限核心和项目)?