简体   繁体   English

Flurry分析5.6.0不向Flurry服务器发送事件

[英]Flurry analytics 5.6.0 not sending events to Flurry servers

I'm new to Flurry but I've implemented the SDK based on the official documentation, and it seems to be "working". 我是Flurry的新手但是我已经根据官方文档实现了SDK,它似乎“正常工作”。 Sessions are started correctly and events are tracked but never ever sent to server. 会话正确启动并跟踪事件但从未发送到服务器。 What am I missing? 我错过了什么?

A similar issue has been posted here 这里也发布类似的问题

My project configuration is as follows: 我的项目配置如下:

  • GooglePlayServices version: com.google.android.gms:play-services-gcm:7.5.0 GooglePlayServices版本:com.google.android.gms:play-services-gcm:7.5.0
  • Flurry Version: FlurryAnalytics-5.6.0.jar Flurry版本:FlurryAnalytics-5.6.0.jar

Any help is greatly appreciated. 任何帮助是极大的赞赏。

The problem is likely because you are selectively compiling the GooglePlayServices SDK. 问题可能是因为您有选择地编译GooglePlayServices SDK。 You are adding only Google Cloud Messaging (gcm) as a dependency. 您只是添加Google Cloud Messaging(gcm)作为依赖项。 You need to also include the ads module to use Flurry. 您还需要包含广告模块以使用Flurry。

That is, if you don't have com.google.android.gms:play-services:7.5.0 (the entire Google Play Services API) in your build.gradle, you should have at least com.google.android.gms:play-services-ads:7.5.0 or com.google.android.gms:play-services-analytics:7.5.0 (note the addition of ads and analytics at the end), in addition to your other dependencies. 也就是说,如果您的com.google.android.gms:play-services:7.5.0没有com.google.android.gms:play-services:7.5.0 (整个Google Play服务API),则至少应该有com.google.android.gms:play-services-ads:7.5.0com.google.android.gms:play-services-analytics:7.5.0 (注意最后添加广告分析 ),以及其他依赖项。

After you do this (and you have Flurry DEBUG log enabled), you should see "Analytics report sent" after each new session begins . 执行此操作后(并且启用了Flurry DEBUG日志),您应该在每个新会话开始后看到“发送的Analytics报告”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM