解决 android studio 出现:"AndroidStudio:Could not GET 'https://dl.google.com Received status code 400 from server: Bad Request"问题

一、android studio 编译项目时出现"AndroidStudio:Could not GET 'https://dl.google.com Received status code 400 from server: Bad Request"

解决 android studio 出现:"AndroidStudio:Could not GET 'https://dl.google.com Received status code 400 from server: Bad Request"问题

二、排查

首先打开"setting",搜索"gradle"看看是否勾选上了""

解决 android studio 出现:"AndroidStudio:Could not GET 'https://dl.google.com Received status code 400 from server: Bad Request"问题

其次最重要的是打开"C:\Users\administrator\.gradle"目录下的gradle.properties文件

是否存在以下内容

systemProp.https.proxyPort=xxx
systemProp.http.proxyHost=xxx.xxx.xxx.xxx
systemProp.https.proxyHost=xxx.xxx.xxx.xxx
systemProp.http.proxyPort=xxx

如果存在,则删除后保存,再重新编译,即可解决问题

上一篇:Centos7防火墙关闭和启用iptables操作


下一篇:Centos7永久关闭防火墙