Android Studio - Genymotion - Volley获取错误的网址下载

时间:2015-06-01 17:51:34

标签: android android-volley genymotion

我面对这个非常奇怪的问题,我无法意识到发生了什么。 我有登录活动,当我尝试发出验证用户信息的请求时,我在volley中收到此错误:

  

com.android.volley.NoConnectionError:java.net.UnknownHostException:无法解析主机" teste.escolaemmovimento.com.br":没有与主机名关联的地址。

此错误仅在我使用Genymotion模拟器时发生,我在创建该对象后立即验证volley Request对象内的URL字段,并在{{1}中插入请求后并且正确的url在那里。 (当我在设备中测试时,不会发生此错误。)

logcat的:

volley queue

任何人都已经遇到过这个问题?这是一个只与模拟器关联的问题?谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

抛出

svg.selectAll('.SomeCircles') .data(data) .enter() .append('circle') .attr('r', 20) .attr('cx', function(d, i) { return i * 25 + 25; }) .attr('cy', function(d, i) { return i * 25 + 25; }) .attr('class', 'SomeCircles') .style('fill', function(d) { //<-- filling based on an attribute of my data if (d.conditionA) { return 'red'; } else if (d.conditionB) { return 'green'; } else { return 'blue'; } }); 表示无法确定主机的IP地址。确保您在Genymotion内部有互联网接入。