Android:Could not GET xxxx Received status code 500 from server: Internal Privoxy Error【已解决】

Time:20190517
Android Studio 3.4.1

导入项目后提示

Could not HEAD 'http://maven.aliyun.com/nexus/content/groups/public/org/apache/httpcomponents/httpcomponents-client/4.5.6/httpcomponents-client-4.5.6.pom'. Received status code 500 from server: Internal Privoxy Error
Caused by: org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm/6.0/asm-6.0.pom.sha1'. Received status code 500 from server: Internal Privoxy Error

Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm/6.0/asm-6.0.pom.sha1'. Received status code 500 from server: Internal Privoxy Error 

总之就是请求阿里云的maven库时提示Received status code 500 from server: Internal Privoxy Error,但直接点击链接,使用浏览器还是可以下载的。
直接搜索查找解决方法,大多是因为代理proxy设置导致无法访问到公司内建maven库,但阿里云不是我们公司的,删除后无用。
虽然没用但附上:
删除或注释掉gradle.properties中的代理部分即可,as的设置有时去掉设置还是没有生效或者更新
删掉这些有颜色的异端
最终解决方法如下
File > setting > Build,Execution,Deployment > Remote jar repositories
Maven Jar Repositories中添加http://maven.aliyun.com/nexus/content/groups/public,重新sync或build即可。
添加这一行,造福千万家

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值