解决android上java.net.UnknownHostException: Unable to resolve host "xxxx": No address associated wit

如题:解决android上面java.net.UnknownHostException: Unable to resolve host "m.blog.csdn.net": No address associated with hostname的错误:

这是由于我们在开发的过程中没有给模拟器和Manifest开放网络导致的,

解决方法目前有两种:

1、android设备网络连接没打开,例如3G网络和WIFI网络

2、Manifest文件没有标明网络访问权限


<uses-permission android:name="android.permission.INTERNET" />


解决android上java.net.UnknownHostException: Unable to resolve host "xxxx": No address associated wit,布布扣,bubuko.com

解决android上java.net.UnknownHostException: Unable to resolve host "xxxx": No address associated wit

上一篇:java环境变量详解---找不到或无法加载主类


下一篇:MyEclipse2014新增bug,尝鲜的朋友需注意NotFoundException: org.springframework.web.context.ContextLoaderListener