Android Studio升级后 出现在No subject alternative DNS name matching services.gradle.org found.

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

转自:https://blog.csdn.net/i_fuqiang/article/details/45000227

猜你喜欢

转载自blog.csdn.net/chuyouyinghe/article/details/81737862