Android Studio: Could not resolve androidx.constraintlayout:constraintlayout:1.1.2
这个问题的解决我查了很多资料有几种写法都不是很详细。
打开C:\Users\Administrator.gradle目录下的gradle.properties文件夹。
#systemProp.http.proxyHost=127.0.0.1
#systemProp.http.proxyPort=80
#systemProp.https.proxyHost=127.0.0.1
#systemProp.https.proxyPort=80
把这几项全部都加上#注释掉。再rebuild一下工程。
不行的话加上http proxy代理设置再次rebuild。
问题解决。