Gradle同步失败:找不到com.android.tools.build:gradle:4.0.1

huangapple go评论65阅读模式
英文:

Gradle sync failed: Could not find com.android.tools.build:gradle:4.0.1

问题

在一个全新的AS(Android Studio)项目中,我们遇到了错误。在我们的代理设置中也存在错误。请查看下面的截屏图示:

Gradle同步失败:找不到com.android.tools.build:gradle:4.0.1

我们如何解决这个错误呢?

更新:

当我们使用自动检测后,在点击尝试同步之后,会打开如下窗口:

Gradle同步失败:找不到com.android.tools.build:gradle:4.0.1

英文:

In a fresh AS project we have error. in our proxy settings we have error too. see the screenshot below:

Gradle同步失败:找不到com.android.tools.build:gradle:4.0.1

How can we solve error?

UPDATE:

When we use auto detect, after click to try sync, below window opened:

Gradle同步失败:找不到com.android.tools.build:gradle:4.0.1

答案1

得分: 1

Sure, here's the translation:

你能尝试使用IP地址(fodev.org的?确定这是正确的吗?)在这种情况下看看是否有效吗?

您可以勾选“自动检测代理设置”看看是否有帮助。

英文:

Can you try use IP address (of fodev.org? are you sure this is correct?) in this case see whether it works?

You can tick the auto-detect proxy settings see whether it helps or not.

答案2

得分: 0

fodev.org:8118 似乎是可以访问的,至少从这里是可以的。也许尝试使用另一个代理,或者找一个在你所在国家/地区提供节点的VPN提供商。作为付费用户,当它不起作用时你可以向他们反馈问题,但对于某些类似的免费服务则不行:https://github.com/freedomofdevelopers/fod

英文:

fodev.org:8118 seems to be accessible, at least from here. Maybe try to use another proxy, or find a VPN provider, that offers endpoints in your country of residence. As a paying customer you could bug them, when it doesn't work - not so with some free of charge service alike: https://github.com/freedomofdevelopers/fod

huangapple
  • 本文由 发表于 2020年10月6日 10:09:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/64218411.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定