android – google analytics easytracker导致java连接异常

前端之家收集整理的这篇文章主要介绍了android – google analytics easytracker导致java连接异常前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我开始使用Google Analytics(分析)平台.
到目前为止,我可以从我的模拟器连接到G.A服务器并上传信息.
问题是,当我从三星Galaxy S测试时,应用程序无法与G.A服务器进行通信.

我得到下一个错误

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)

我认为我的设备有问题 – 可以安装防火墙,无论出现什么问题 – 我该如何绕过它?

解决方法

原文链接:https://www.f2er.com/android/312722.html

猜你在找的Android相关文章