我開始使用Google Analytics平臺。 截至目前,我可以從我的仿真器連接到G.A服務器並上傳信息。 問題是,從我的Samsung Galaxy S進行測試時,該應用程序無法與G.A服務器進行通信。google analytics easytracker導致java連接異常
我得到了一個錯誤:
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): Problem with socket or streams.
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): java.net.ConnectException: www.google-analytics.com/127.0.0.1:80 - Connection refused
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:437)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at java.net.Socket.connect(Socket.java:1002)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at com.google.android.apps.analytics.PipelinedRequester.maybeOpenConnection(Unknown Source)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at com.google.android.apps.analytics.PipelinedRequester.addRequest(Unknown Source)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at com.google.android.apps.analytics.NetworkDispatcher$DispatcherThread$AsyncDispatchTask.dispatchSomePendingHits(Unknown Source)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at com.google.android.apps.analytics.NetworkDispatcher$DispatcherThread$AsyncDispatchTask.run(Unknown Source)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at android.os.Handler.handleCallback(Handler.java:587)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at android.os.Handler.dispatchMessage(Handler.java:92)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at android.os.Looper.loop(Looper.java:130)
12-17 17:43:21.924: W/GoogleAnalyticsTracker(20577): at android.os.HandlerThread.run(HandlerThread.java:60)
我覺得有我的裝置 - 一個問題可能有被其上安裝了防火牆,並且無論是─問題是什麼我怎麼繞過它?
您使用分析SDK爲Android? – 2011-12-17 15:54:11
我使用[analytics jar](http://code.google.com/apis/analytics/docs/mobile/download.html)和[easytracker jar](http://code.google.com/p/analytics-api-samples/downloads/list) – 2011-12-17 16:21:23
直到切換到libGoogleAnalyticsV2.jar SDK(可從管理面板上的網絡媒體資源創建頁面獲得)之前,我遇到了同樣的問題 – vokilam 2012-10-25 11:06:19