Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Flurry Analytics for Android:数据未发送到Flurry仪表板?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试将Flurry Analytics集成到我创建的简单应用中.我已经正确下载并将SDK添加到我的应用程序中.但是,当我运行应用程序时,没有数据被发送到Flurry仪表板,尽管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 op@R_549_6756@x6e 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 op@R_549_6756@x6e 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 op@R_549_6756@x71 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 op@R_549_6756@x71 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 op@R_549_6756@x0d 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,@R_272_10586@l 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,@R_272_10586@l 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 Services.您还需要在应用程序标记内将其添加到应用程序的清单中:

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

大佬总结

以上是大佬教程为你收集整理的Flurry Analytics for Android:数据未发送到Flurry仪表板?全部内容,希望文章能够帮你解决Flurry Analytics for Android:数据未发送到Flurry仪表板?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。