gpt4 book ai didi

android - 适用于 Android 的 Flurry Analytics : Data not being sent to Flurry dashboard?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:24:36 25 4
gpt4 key购买 nike

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

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 Activity 代码:

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 Services到你的项目。您还需要将其添加到应用程序的 list 中,在 application 标记内:

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

关于android - 适用于 Android 的 Flurry Analytics : Data not being sent to Flurry dashboard?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26469717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com