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