GOOGLE PLAY服务例外情况:com.google.android.gms.common.GooglePlayServicesUtil [英] GOOGLE PLAY SERVICES EXCEPTION: com.google.android.gms.common.GooglePlayServicesUtil

查看:1096
本文介绍了GOOGLE PLAY服务例外情况:com.google.android.gms.common.GooglePlayServicesUtil的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Google Play游戏整合到我的应用中。它目前正在调试模式下工作。但是,它似乎不能在发布模式下工作。我收到错误。我尝试了清理并重建。


java.lang.RuntimeException:无法获取提供程序com.google.android.gms.measurement.AppMeasurementContentProvider: java.lang.ClassNotFoundException


然后这一个:

lockquote

GOOGLE PLAY SERVICES EXCEPTION:com.google.android.gms.common.GooglePlayServicesUtil

其次是:


Google Play服务库存在问题,即Android广告ID支持需要
。 Google Play Services
图书馆应该集成到使用分析或广告的Play商店
中的任何应用程序中。

有什么可能是错的?我尝试过使用Gradle,但没有运气。



如果我禁用Proguard,它就可以运行!这似乎是一个已知的问题,但尚未解决。任何想法?

解决方案

问题在于我在使用Gradle时

  classpath'com.google.gms:google-services:1.5.0-beta2'

现在我正在使用

  classpath'com.google.gms:google-services:1.5 .0'


I am trying to integrate Google Play Games into my app. It is currently working in debug mode. However, it does not seem to work in release mode. I am getting errors. I tried clean and rebuild.

java.lang.RuntimeException: Unable to get provider com.google.android.gms.measurement.AppMeasurementContentProvider: java.lang.ClassNotFoundException

And then this one:

GOOGLE PLAY SERVICES EXCEPTION: com.google.android.gms.common.GooglePlayServicesUtil

Followed by this one:

There is a problem with the Google Play Services library, which is required for Android Advertising ID support. The Google Play Services library should be integrated in any app shipping in the Play Store that uses analytics or advertising.

What could be wrong? I tried experimenting with Gradle, but no luck yet.

If I disable Proguard, it works! This seems to be a known issue, but not resolved yet. Any ideas?

解决方案

The problem was that in my Gradle I was using

classpath 'com.google.gms:google-services:1.5.0-beta2'

Now I am using

classpath 'com.google.gms:google-services:1.5.0'

这篇关于GOOGLE PLAY服务例外情况:com.google.android.gms.common.GooglePlayServicesUtil的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆