1

我已经开始在我的应用程序上测试 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 = 
4

0 回答 0