android - 为 android 初始化 flurry 时出错

标签 android runtime-error flurry

我正在使用 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 库中。

希望这对您有所帮助。

查看链接 thisthis获取更多信息。

关于android - 为 android 初始化 flurry 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30842867/

相关文章:

java - Firebase 读取数据

Android 作为 httppost 的结果获取 pdf 文件

java - Android 在启动应用程序时出现运行时错误

ListView 中的 Android 广告展示位置

flurry - 有没有办法从 Flurry 一次性下载所有事件统计数据?

android - 将方形图像裁剪为圆形 - 以编程方式

android - 带有 cygwin 的 Windows 7 中的 repo 初始化错误

php - 功能导致脚本停止在PHP

c++ - 访问冲突写入位置 0x0000000a

iphone - 如何将 flurry+Admob 集成到单个横幅中?