Android Studio: Could not resolve androidx.constraintlayout:constraintlayout:1.1.2

报错 Could not resolve androidx.constraintlayout:constraintlayout:1.1.2

搞死我了…查了很多 又是更新sdk又是改dependency 还有off-line mode

全都没用,发现居然是代理的问题,Google的源开了代理反而会炸,惊了…

解决方案如下:

step1.关闭代理:
	settings -> HTTP Proxy -> No proxy

step2.手动更新配置:
	gradle.properties:
		...
		# org.gradle.parallel=true
        #Tue Jul 02 10:35:29 CST 2019
        
        # 如果出现以下几行,务必注释
        
        #systemProp.https.proxyPort=1080
        #systemProp.http.proxyHost=127.0.0.1
        #systemProp.https.proxyHost=127.0.0.1
        #systemProp.http.proxyPort=1080
	
step3.build

终于搞定了:
Android Studio: Could not resolve androidx.constraintlayout:constraintlayout:1.1.2_第1张图片

你可能感兴趣的:(Android Studio: Could not resolve androidx.constraintlayout:constraintlayout:1.1.2)