Unable to resolve host “” No address associated with hostname

后端 未结 11 1518
悲&欢浪女
悲&欢浪女 2020-12-07 22:00

I tried following this tutorial: Getting Data from the Web

I tried implementing it on Android 3.0, the latest platform for tablets, however, I get this error: \"

11条回答
  •  有刺的猬
    2020-12-07 22:17

    Are you able to reach that url from within the built-in browser?

    If not, it means that your network setup is not correct. If you are in the emulator, you may have a look at the networking section of the docs.

    If you are on OS/X, the emulator is using "the first" interface, en0 even if you are on wireless (en1), as en0 without a cable is still marked as up. You can issue ifconfig en0 down and restart the emulator. I think I have read about similar behavior on Windows.

    If you are on Wifi/3G, call your network provider for the correct DNS settings.

提交回复
热议问题