解决Intel平台AS启动报错:Gradle Sync Failed:Tag mismatch!

Could not get resource 'https://dl.google.com/xxx'

今天在gradle build时遇到了这个问题:

Could not resolve all dependencies for configuration ‘:main:skeletonDebugRuntimeClasspath’.

Could not determine artifacts for com.android.support:support-core-utils:28.0.0
Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/support/support-core-utils/28.0.0/support-core-utils-28.0.0.aar’.
Could not HEAD ‘https://dl.google.com/dl/android/maven2/com/android/support/support-core-utils/28.0.0/support-core-utils-28.0.0.aar’.
Connect to dl.google.com:443 [dl.google.com/6.6.6.6] failed: connect timed out

编辑这个文件:.gradle/gradle.properties 加入下面配置,(我理解是:意思是走本地系统代理)

systemProp.https.nonProxyHosts=localhost
 #systemProp.https.proxyPort=1080
 systemProp.http.proxyHost=127.0.0.1
 systemProp.http.nonProxyHosts=localhost
 #systemProp.https.proxyHost=127.0.0.1
 systemProp.http.proxyPort=1080

你可能感兴趣的:(gradle,android,java)