0
我在我的一個Android應用程序中使用Flurry進行分析。我在Flurry Portal上創建了一個帳戶並獲得了API Key。我遵循了'如何從頭開始亂舞'文檔中提供的步驟。當我開始應用程序和檢查日誌時,它表示亂碼正在捕獲事件併發送數據。但我在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:[email protected]
08-17 15:28:24.871 17864-17878/? W/FlurryAgent: Flurry session resumed for context:[email protected]
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.
在日誌的最後一行顯示分析發送。但我仍然無法看到任何關於亂七八糟的門戶網站。