Gradle从服务器接收到的状态码403:禁止 [英] Gradle Received status code 403 from server: Forbidden

查看:142
本文介绍了Gradle从服务器接收到的状态码403:禁止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于此错误,我无法构建我的android项目.Gradle无法获取 https://www.jitpack.io/com/github/Raizlabs/DBFlow/dbflow/3.1.1/dbflow-3.1.1.pom .足够奇怪的是,我能够在浏览器中查看此URL后面的pom文件.这里可能是什么问题?

I can't build my android project due to this error. Gradle failed to GET https://www.jitpack.io/com/github/Raizlabs/DBFlow/dbflow/3.1.1/dbflow-3.1.1.pom . Strange enough I am able to view the pom file behind this URL in my browser. What might be the problem here?

我的gradle.properties看起来像这样:

My gradle.properties look like this:

systemProp.http.proxyHost=myproxy.local
systemProp.http.proxyPort=3210
systemProp.https.proxyHost=myproxy.local
systemProp.https.proxyPort=3210
systemProp.http.proxyUser=usr
systemProp.http.proxyPassword=pwd

当我删除proxyUser/Password时,我需要进行407代理身份验证.

When I remove the proxyUser/Password I get an 407 Proxy Authentication Required.

推荐答案

对我来说,这很有效1.使缓存无效/重启2.使用gradle文件同步项目

For me this worked 1. Invalidate caches/restart 2. Sync project with gradle files

这篇关于Gradle从服务器接收到的状态码403:禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆