0

全て、

分析用の Android アプリの 1 つで Flurry を使用しています。Flurry Portal でアカウントを作成し、API キーを取得しました。「フラーリーの開始方法」ドキュメントに記載されている手順に従いました。アプリケーションを起動してログを確認すると、flurry がイベントをキャプチャしてデータを送信していると表示されます。しかし、Flurry Portal には何も表示されません。これが私のコードです

応用

public class GlobalClass extends Application{

    private static Bus instance = null;

    @Override public void onCreate() {
        super.onCreate();
        instance = new Bus();


        FlurryAgent.setLogEnabled(true);
        FlurryAgent.setLogEvents(true);
        FlurryAgent.setLogLevel(Log.INFO);
        FlurryAgent.init(this,"XXXXXXXXXXX");
        Log.i("FLURRY AGENT", "Initialized Flurry Agent");
    }
}

イベントのロギング用

FlurryAgent.logEvent(getString(R.string.filter_listing_event));
FragmentTransaction ft = getFragmentManager().beginTransaction();
Fragment prev = getFragmentManager().findFragmentByTag("dialog");

ここにログがあります

08-17 15:28:24.651 17864-17864/? W/FlurryAgent: 'setLogEnabled' method is deprecated.
08-17 15:28:24.651 17864-17864/? W/FlurryAgent: 'setLogLevel' method is deprecated.
08-17 15:28:24.671 17864-17878/? E/FlurryAgent: GOOGLE PLAY SERVICES EXCEPTION: com.google.android.gms.common.GooglePlayServicesUtil
08-17 15:28:24.671 17864-17878/? 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.
08-17 15:28:24.681 17864-17864/? W/FlurryAgent: 'init' method is deprecated.
08-17 15:28:24.681 17864-17864/? I/FLURRY AGENT: Initialized FLurry Agent
08-17 15:28:24.681 17864-17878/? I/FlurryAgent: New main file also not found. returning..
08-17 15:28:24.871 17864-17878/? W/FlurryAgent: Flurry session started for context:com.test.activity.SplashActivity@6859dd
08-17 15:28:24.871 17864-17878/? W/FlurryAgent: Flurry session resumed for context:com.test.activity.SplashActivity@6859dd
08-17 15:28:24.871 17864-17878/? E/FlurryAgent: GOOGLE PLAY SERVICES EXCEPTION: com.google.android.gms.common.GooglePlayServicesUtil
08-17 15:28:24.871 17864-17878/? 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.
08-17 15:28:24.891 17864-17878/? W/System.err: remove failed: ENOENT (No such file or directory) : /data/user/0/com.test/files/.YFlurrySenderIndex.info.AnalyticsMain
08-17 15:28:26.281 17864-17889/com.test W/FlurryAgent: Analytics report sent.

ログの最後の行は、分析が送信されたことを示しています。しかし、それでもフラリー ポータルでは何も見えません。

4

1 に答える 1

0

これは私にも起こっていました。私は2つのことをしました:

  • Flurry SDK をバージョン 6.4.2 に更新しました
  • FlurryAgent.Builderフラリーの初期化に使用

ここを参照してください: https://developer.yahoo.com/flurry/docs/integrateflurry/android/

于 2016-08-23T12:53:02.057 に答える