Error:No subject alternative DNS name matching services.gradle.org found.
解决办法:
编辑 gradle/wrapper/gradle-wrapper.properties,修改 distributionUrl :
distributionUrl=http://services.gradle.org/distributions/gradle-2.2.1-all.zip
就是把https改为http;
原文:
Edit gradle/wrapper/gradle-wrapper.properties, that should be available at the root of your project, and change distributionUrl to:
distributionUrl=http://services.gradle.org/distributions/gradle-2.2.1-all.zip
来自stackoverflow:http://stackoverflow.com/questions/29576097/gradle-sync-error-in-android-studio-when-importing-project
本文介绍了解决Gradle同步错误的具体步骤。通过将gradle-wrapper.properties文件中的distributionUrl从https更改为http,可以解决因找不到匹配的服务.gradle.org的替代DNS名称而导致的问题。
514

被折叠的 条评论
为什么被折叠?



