如何克服eclipse中android模拟器中的Socket Exception?

时间:2012-08-10 15:40:59

标签: android eclipse android-emulator

我经常在eclipse中使用maven运行测试用例时遇到下面提到的错误(使用Robotium)。

05-24 19:03:39.112 D/dalvikvm(  441): GC_CONCURRENT freed 2038K, 50% free 8431K/16775K, external 18832K/20738K, paused 9ms+8ms
05-24 19:03:40.032 I/System.out(  441): successtrue
05-24 19:03:40.212 D/dalvikvm(  441): GC_CONCURRENT freed 2091K, 51% free 8387K/16775K, external 18832K/20738K, paused 7ms+8ms
05-24 19:06:07.962 D/SntpClient(   77): request time failed: java.net.SocketException: Address family not supported by protocol
05-24 19:11:07.972 D/SntpClient(   77): request time failed: java.net.SocketException: Address family not supported by protocol
05-24 19:16:07.982 D/SntpClient(   77): request time failed: java.net.SocketException: Address family not supported by protocol

我查看了不同的博客,人们提到了不同的原因。任何人都有任何有效的错误原因吗?

代码的设计风格是为了创造&密切联系。此外,即使我不执行网络操作,我也遇到了这个问题。

0 个答案:

没有答案