错误提示:Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
打印了一下url的值,http://协议头没有,只剩下字符串的中间部分,
URL url = null;
InputStream in=null;
Log.d("tag",""+params[0]);
try {
url = new URL(params[0]);
} catch (MalformedURLException e) {
e.printStackTrace();
}
怎么解决啊,纠结半天了
params的数据是否不正确,不然就构造URL失败了