android 新手, hello world 无法编译。。

查看 486|回复 48
chopin1998519
OP
  
@iovekkk 试过了, 还是一样的错误。。
chopin1998519
OP
  
@superedlimited 是的,
我也直接在 terminal 里用 http_proxy/ https_proxy 环境变量试过
这样设置好后,gradle 还会问我要不要把这个配置写在它自己的全局配置文件里(~/.gradle/)
chopin1998519
OP
  
@kaedea 什么意思? 我的是 clash, socks 和 http 混合端口, 都能用的
superedlimited   
@superedlimited btw ,eel 是鳗鱼,鳐是带翅膀的魔鬼鱼
superedlimited   
@chopin1998519 A new daemon was started but could not be connected to: pid=DaemonInfo{pid=261152, address=[0c0205be-28f5-4060-bc75-b4f2fefe660c port:43841, addresses:[/127.0.0.1]], state=Busy, lastBusy=1685421977961, context=DefaultDaemonContext[uid=bd402a2c-565c-485a-845d-febf686b1655
你点一下下面那个 check connection 按钮试一试
iovekkk   
@chopin1998519 我这种方法不需要配置代理,设置代理反而可能会有问题
chopin1998519
OP
  
@iovekkk 我知道, 用阿里云关闭代理了, 还是一样。。。哭死
chopin1998519
OP
  
![代理测试]( https://imgur.com/a/7F1I4JY)
@superedlimited
chopin1998519
OP
  
[img]

[/img]
superedlimited   
你的网络设置,有设置 nat masquerade 吗?
We have observed this can occur when network address translation (NAT) masquerade is used. When NAT masquerade is enabled, connections that should be considered local to the machine are masked to appear from external IP addresses. Gradle refuses to connect to any external IP address as a security precaution.
The solution to this problem is to adjust your network configuration such that local connections are not modified to appear as from external addresses.
You can monitor the detected network setup and the connection requests in the daemon log file ($GRADLE_USER_HOME/daemon//daemon-.out.log).
@chopin1998519
您需要登录后才可以回帖 登录 | 立即注册

返回顶部