我已经安装了Android 2.2模拟器,其中互联网无法正常工作,
我支持代理,因此我已在以下位置输入代理: “设置” - > “无线和网络” - > “移动网络” - > “接入点名称” - > “Telkila”
但仍未改善。
有什么我想念的。
这是我的logcat:
D/SntpClient( 58): request time failed: java.net.SocketException: Address family not supported by protocol
I/java.net.Socket( 237): www.google.com/74.125.235.19(80): java.net.ConnectException: www.google.com/74.125.235.19:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.20(80): java.net.ConnectException: www.google.com/74.125.235.20:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.16(80): java.net.ConnectException: www.google.com/74.125.235.16:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.17(80): java.net.ConnectException: www.google.com/74.125.235.17:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.19(80): java.net.ConnectException: www.google.com/74.125.235.19:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.20(80): java.net.ConnectException: www.google.com/74.125.235.20:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.16(80): java.net.ConnectException: www.google.com/74.125.235.16:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.17(80): java.net.ConnectException: www.google.com/74.125.235.17:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.19(80): java.net.ConnectException: www.google.com/74.125.235.19:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.20(80): java.net.ConnectException: www.google.com/74.125.235.20:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.16(80): java.net.ConnectException: www.google.com/74.125.235.16:80 - Connection refused
I/java.net.Socket( 237): www.google.com/74.125.235.17(80): java.net.ConnectException: www.google.com/74.125.235.17:80 - Connection refused
E/Tab ( 237): onReceivedError -6 http://www.google.com/m?hl=en&gl=us&source=android-launcher-widget&q=hello The connection to the server was unsuccessful.
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher }
W/InputManagerService( 58): Ignoring hideSoftInput of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4505fbd8
W/InputManagerService( 58): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@44ea5260 (uid=10019 pid=237)
D/dalvikvm( 237): GC_EXPLICIT freed 2773 objects / 182192 bytes in 71ms
D/dalvikvm( 120): GC_EXPLICIT freed 106 objects / 4272 bytes in 91ms
D /SntpClient( 58): request time failed: java.net.SocketException: Address family not supported by protocol
I/ActivityManager( 58): Starting activity: Intent { act=android.search.action.GLOBAL_SEARCH flg=0x14200000 pkg=com.android.quicksearchbox cmp=com.android.quicksearchbox/.SearchActivity bnds=[86,92][459,157] (has extras) }
W/InputManagerService( 58): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@44f60640 (uid=10012 pid=182)
D/dalvikvm( 113): GC_EXPLICIT freed 485 objects / 22512 bytes in 70ms
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.WEB_SEARCH flg=0x14000000 cmp=com.android.quicksearchbox/.google.GoogleSearch (has extras) }
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.VIEW dat=http://www.google.com/m?hl=en&gl=us&source=android-launcher-widget&q=hello flg=0x10000000 cmp=com.android.browser/.BrowserActivity (has extras) }
I/browser ( 237): Reusing tab for com.android.quicksearchbox
W/IInputConnectionWrapper( 182): showStatusIcon on inactive InputConnection
D/dalvikvm( 182): GC_EXPLICIT freed 2044 objects / 102120 bytes in 76ms
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher }
W/InputManagerService( 58): Ignoring hideSoftInput of: com.android.internal.view.IInputMethodClient$Stub$Proxy@450be550
W/InputManagerService( 58): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@44ea5260 (uid=10019 pid=237)
D/dalvikvm( 237): GC_EXPLICIT freed 795 objects / 52256 bytes in 69ms
D/dalvikvm( 120): GC_EXPLICIT freed 33 objects / 1744 bytes in 78ms
D/SntpClient( 58): request time failed: java.net.SocketException: Address family not supported by protocol
I/ActivityManager( 58): Starting activity: Intent { act=android.search.action.GLOBAL_SEARCH flg=0x14200000 pkg=com.android.quicksearchbox cmp=com.android.quicksearchbox/.SearchActivity bnds=[86,92][459,157] (has extras) }
W/InputManagerService( 58): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@44f60640 (uid=10012 pid=182)
D/dalvikvm( 108): GC_EXTERNAL_ALLOC freed 563 objects / 30304 bytes in 68ms
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.WEB_SEARCH flg=0x14000000 cmp=com.android.quicksearchbox/.google.GoogleSearch (has extras) }
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.VIEW dat=http://www.google.com/m?hl=en&gl=us&source=android-launcher-widget&q=hello flg=0x10000000 cmp=com.android.browser/.BrowserActivity (has extras) }
I/browser ( 237): Reusing tab for com.android.quicksearchbox
W/IInputConnectionWrapper( 182): showStatusIcon on inactive InputConnection
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher }
W/InputManagerService( 58): Ignoring hideSoftInput of: com.android.internal.view.IInputMethodClient$Stub$Proxy@45102f38
W/InputManagerService( 58): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@44ea5260 (uid=10019 pid=237)
I/ActivityManager( 58): Starting activity: Intent { act=android.search.action.GLOBAL_SEARCH flg=0x14200000 pkg=com.android.quicksearchbox cmp=com.android.quicksearchbox/.SearchActivity bnds=[86,92][459,157] (has extras) }
W/InputManagerService( 58): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@44f60640 (uid=10012 pid=182)
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.WEB_SEARCH flg=0x14000000 cmp=com.android.quicksearchbox/.google.GoogleSearch (has extras) }
I/ActivityManager( 58): Starting activity: Intent { act=android.intent.action.VIEW dat=http://www.google.com/m?hl=en&gl=us&source=android-launcher-widget&q=hello flg=0x10000000 cmp=com.android.browser/.BrowserActivity (has extras) }
I/browser ( 237): Reusing tab for com.android.quicksearchbox
W/IInputConnectionWrapper( 182): showStatusIcon on inactive InputConnection
D/dalvikvm( 113): GC_EXPLICIT freed 535 objects / 25976 bytes in 48ms
D/dalvikvm( 182): GC_EXPLICIT freed 4012 objects / 207464 bytes in 81ms
答案 0 :(得分:0)
您无需设置特定网络。
模拟器使用NAT,因此互联网应该从模拟器“开箱即用”工作。
我建议您删除条目并查看结果。
事实上,我试图在我的模拟器上“启用Wifi”,但这会产生错误,这是非常合乎逻辑的......模拟器无法模拟无线设备....