适用于Android的Google Analytics V2 SDK会破坏较旧的平台设备

时间:2012-12-10 01:58:02

标签: android google-analytics

我已经开始在我的应用上测试Google Analytics,但是我注意到它在启动时为旧设备崩溃了我的应用。我该如何解决这个问题?

适用于平台4.2,API级别17 ...在目标2.3.5上测试应用程序崩溃但无法启动。

代码段:

//Code from my Main Activity…..
private GoogleAnalyticsTracker tracker;

protected void onCreate(Bundle savedInstanceState) 
{
  super.onCreate(savedInstanceState);
  GoogleAnalyticsTracker.getInstance().startNewSession("UA-329229164-1", 25, this);
  mWebView.loadUrl("www.mysite.com");
  //store loaded URL page
  String current = mWebView.getUrl();
  //track the page and visit
  this.tracker.trackPageView(current);
}

protected void onDestory()
{
  super.onDetachedFromWindow();
  tracker.stopSession();
}

错误:

12-10 01:49:32.615: W/Ads(24918): **No Google Analytics: Library Incompatible.**
12-10 01:49:32.745: D/Database(24918): dbopen(): path = /data/data/com.media.trips/databases/webview.db, flag = 6, file size = 29696
12-10 01:49:32.755: D/Database(24918): dbopen(): path = /data/data/com.medi.trip/databases/webview.db, mode: delete, disk free size: 34 M, handle: 0x275840
12-10 01:49:32.775: D/Database(24918): dbopen(): path = /data/data/com.media.trips/databases/webviewCache.db, flag = 6, file size = 23552
12-10 01:49:32.775: D/Database(24918): dbopen(): path = 

0 个答案:

没有答案