Could not resolve all files for configuration ‘:classpath‘.

First of all, allow me to complain, this bug took me 3 hours, and the problems on the Internet have been searched over and over again

首先我的环境:使用了公司的代理,不是直接访问的(用的云桌面),如果你不是走的代理,那么可以离开了,就不浪费你宝贵的事件了

solution

1. Open gradle.propertiesthe file , if the file does not exist, please create the file.
2. Add the following configuration to the gradle.properties file: (assuming your company's proxy is 192.168.xxx.xxx:1234)

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

3. Replace it with your own company's proxy ip and port. If it is useful, please like it so that more people can see it

Guess you like

Origin blog.csdn.net/weixin_44441196/article/details/129796445