标签:网络访问 android 网络 原因 权限 errno intern address sed
log报错如下:
Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
Caused by: libcore.io.ErrnoException: getaddrinfo failed: EACCES (Permission denied)
原因及解决方法:
主要是没有在AndroidManifest里面添加网络访问权限。
<uses-permission android:name="android.permission.INTERNET"/>
libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
标签:网络访问 android 网络 原因 权限 errno intern address sed
原文地址:http://www.cnblogs.com/expiator/p/6018723.html