Gradle sync failed: Host name 'dl.google.com' does not match the certificate subject provided by the peer (CN=*.c.docs.google.com, O=Google Inc, L=Mountain View, ST=California, C=US) Consult IDE log for more details (Help | Show Log) (4s 963ms)
...全文
16089打赏收藏
AS更新到3.1后创建工程同步失败
Gradle sync failed: Host name 'dl.google.com' does not match the certificate subject provided by the peer (CN=*.c.docs.google.com, O=Google Inc, L=Mountain View, ST=California, C=US) Consult IDE log for more details (Help | Show Log) (4s 963ms)
A problem occurred configuring root project 'WSN'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.1.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Host name 'dl.google.com' does not match the certificate subject provided by the peer (CN=*.c.docs.google.com, O=Google Inc, L=Mountain View, ST=California, C=US)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
CONFIGURE FAILED in 5s
Host name 'dl.google.com' does not match the certificate subject provided by the peer (CN=*.c.docs.google.com, O=Google Inc, L=Mountain View, ST=California, C=US)