繁体   English   中英

Flurry Analytics for Android:数据未发送到Flurry仪表板?

[英]Flurry Analytics for Android: Data not being sent to Flurry dashboard?

我正在尝试将Flurry Analytics集成到我创建的简单应用中。 我已经正确下载并将SDK添加到我的应用程序中。 但是,当我运行应用程序时,没有数据被发送到Flurry dashboard尽管logcat消息确认它是,例如:

10-20 06:56:51.756: W/FlurryAgent(1355): FlurryDataSender: report 7ab955c2-f035-4c54-b606-a68a8edb76c6 sent. HTTP response: 200
10-20 06:57:08.356: W/FlurryAgent(1355): End session with context: com.example.testflurry.MainActivity@b3d14db8 count:0
10-20 06:57:18.726: W/FlurryAgent(1355): Finalize session
10-20 06:57:21.076: W/FlurryAgent(1355): FlurryDataSender: report dbf1e31f-f136-4c10-ba97-dc5760dfbbd8 sent. HTTP response: 200

Android活动代码:

package com.example.testflurry;

import com.flurry.android.FlurryAgent;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;


public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    protected void onStart()
    {
        super.onStart();
        FlurryAgent.onStartSession(this, "xxxx");
    }

    @Override
    protected void onStop()
    {
        super.onStop();     
        FlurryAgent.onEndSession(this);
    }

}

完整的Logcat输出:

10-20 06:56:48.746: I/dalvikvm(1355): Could not find method com.google.android.gms.ads.identifier.AdvertisingIdClient$Info.getId, referenced from method com.flurry.sdk.dj.v
10-20 06:56:48.746: W/dalvikvm(1355): VFY: unable to resolve virtual method 10064: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;.getId ()Ljava/lang/String;
10-20 06:56:48.896: D/dalvikvm(1355): VFY: replacing opcode 0x6e at 0x0042
10-20 06:56:48.946: I/dalvikvm(1355): Could not find method com.google.android.gms.ads.identifier.AdvertisingIdClient$Info.isLimitAdTrackingEnabled, referenced from method com.flurry.sdk.dj.o
10-20 06:56:48.946: W/dalvikvm(1355): VFY: unable to resolve virtual method 10065: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;.isLimitAdTrackingEnabled ()Z
10-20 06:56:48.946: D/dalvikvm(1355): VFY: replacing opcode 0x6e at 0x0006
10-20 06:56:48.966: I/dalvikvm(1355): Could not find method com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable, referenced from method com.flurry.sdk.dw.b
10-20 06:56:48.986: W/FlurryAgent(1355): Start session with context: com.example.testflurry.MainActivity@b3d14db8 count:0
10-20 06:56:48.996: W/dalvikvm(1355): VFY: unable to resolve static method 10067: Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable (Landroid/content/Context;)I
10-20 06:56:48.996: D/dalvikvm(1355): VFY: replacing opcode 0x71 at 0x0009
10-20 06:56:49.006: I/dalvikvm(1355): Could not find method com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo, referenced from method com.flurry.sdk.dw.c
10-20 06:56:49.006: W/dalvikvm(1355): VFY: unable to resolve static method 10066: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;.getAdvertisingIdInfo (Landroid/content/Context;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
10-20 06:56:49.006: D/dalvikvm(1355): VFY: replacing opcode 0x71 at 0x000a
10-20 06:56:49.026: W/dalvikvm(1355): VFY: unable to resolve exception class 1277 (Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;)
10-20 06:56:49.026: W/dalvikvm(1355): VFY: unable to find exception handler at addr 0x29
10-20 06:56:49.026: W/dalvikvm(1355): VFY:  rejected Lcom/flurry/sdk/dw;.c ()Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
10-20 06:56:49.026: W/dalvikvm(1355): VFY:  rejecting opcode 0x0d at 0x0029
10-20 06:56:49.026: W/dalvikvm(1355): VFY:  rejected Lcom/flurry/sdk/dw;.c ()Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
10-20 06:56:49.026: W/dalvikvm(1355): Verifier rejected class Lcom/flurry/sdk/dw;
10-20 06:56:49.026: W/System.err(1355): java.lang.VerifyError: com/flurry/sdk/dw
10-20 06:56:49.036: W/System.err(1355):     at com.flurry.sdk.dj$1.a(SourceFile:247)
10-20 06:56:49.036: W/System.err(1355):     at com.flurry.sdk.fc.run(SourceFile:49)
10-20 06:56:49.036: W/System.err(1355):     at android.os.Handler.handleCallback(Handler.java:733)
10-20 06:56:49.036: W/System.err(1355):     at android.os.Handler.dispatchMessage(Handler.java:95)
10-20 06:56:49.036: W/System.err(1355):     at android.os.Looper.loop(Looper.java:136)
10-20 06:56:49.046: W/System.err(1355):     at android.os.HandlerThread.run(HandlerThread.java:61)
10-20 06:56:49.436: D/dalvikvm(1355): GC_FOR_ALLOC freed 299K, 11% free 2957K/3312K, paused 30ms, total 32ms
10-20 06:56:49.486: D/gralloc_goldfish(1355): Emulator without GPU emulation detected.
10-20 06:56:51.386: D/dalvikvm(1355): GC_FOR_ALLOC freed 410K, 14% free 3051K/3520K, paused 31ms, total 31ms
10-20 06:56:51.756: W/FlurryAgent(1355): FlurryDataSender: report 7ab955c2-f035-4c54-b606-a68a8edb76c6 sent. HTTP response: 200
10-20 06:57:08.356: W/FlurryAgent(1355): End session with context: com.example.testflurry.MainActivity@b3d14db8 count:0
10-20 06:57:18.726: W/FlurryAgent(1355): Finalize session
10-20 06:57:21.076: W/FlurryAgent(1355): FlurryDataSender: report dbf1e31f-f136-4c10-ba97-dc5760dfbbd8 sent. HTTP response: 200

信息是否从应用程序成功发送到Flurry?

您需要将Google Play服务添加到您的项目中。 您还需要在应用程序标记内将其添加到应用程序的清单中:

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />    

暂无
暂无

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

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