解决 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"看看是否勾选上了""

其次最重要的是打开"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

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

猜你喜欢

转载自www.cnblogs.com/sky-cheng/p/11832959.html