我正在使用 FlurryAnalytics-5.5.0.jar。当我初始化 Flurry 时,我收到一些错误:
FlurryAgent.setLogEnabled(true);
FlurryAgent.setLogEvents(true);
FlurryAgent.setLogLevel(android.util.Log.ERROR);
FlurryAgent.init(this, FLURRY_ID);
错误:
Could not find class 'com.flurry.sdk.br', referenced from method com.flurry.sdk.bq.a
和
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.
能请教一下吗?
最佳答案
出现此问题是因为未对 Google Play 服务进行属性配置。检查您的项目配置中是否缺少任何播放服务核心依赖项。
在我的例子中,我通过将以下依赖项添加到 build.gradle 配置文件(应用级别)解决了这个问题:
编译 'com.google.android.gms:play-services-base:8.4.0'
确切的 logcat 错误行如下
E/FlurryAgent: GOOGLE PLAY SERVICES EXCEPTION: com.google.android.gms.common.GooglePlayServicesUtil
E/FlurryAgent: 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.
GooglePlaySercicesUtil 类位于 play-services-base 库中。
希望这对您有所帮助。
关于android - 为 android 初始化 flurry 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30842867/