Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle.

Android studio 导入微信支付Demo出现错误  Error:Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle. 这种情况下显然是项目gradle版本与本地gradle版本不一致,要么下载对应版本gradle,要么改变项目gradle版本保持跟本地一致,这里推荐第二种,废话不多说直接上图

1.打开项目目录下../gradle/wrapper/

Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle._第1张图片

2.打开gradle-wrapper.properties文件,把distributionUrl 值替换掉,可以新建一个项目复制过来,回到项目重新sync一下即可


Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle._第2张图片Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle._第3张图片

你可能感兴趣的:(Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle.)