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即可。

更多相关文章

  1. 使用系统资源的引用总结以及收到短信后给一个notification提示
  2. AndroidStudio快捷键设置2
  3. Android(安卓)studio新建activity运行出错解决方法
  4. React Navigation Android(安卓)返回键事件处理
  5. Android(安卓)make sdk 错误解决方案
  6. Ubuntu18.04下载编译Android8.1.0(一)
  7. android FastJson的使用
  8. android调用系统发送短信 和 已发送短信界面
  9. 修正android cocos2dx项目当点击属性时提示错误的问题

随机推荐

  1. Android布局属性说明
  2. android 相关的网站
  3. 【Android】关于Android文档的翻译
  4. Android百分比布局:PercentFrameLayout
  5. LinearLayout和RelativeLayout 比较
  6. android logo:内核、android开机动画
  7. Android UI系列-----RelativeLayout的相
  8. Android 给TextView添加点击事件
  9. Android修改Gallery页面布局
  10. Android 资源文件中@、@android:type、@*