AS更新到3.1后创建工程同步失败

藏锋纳刃 2018-04-06 03:11:47
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)


...全文
1608 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
藏锋纳刃 2018-04-18
  • 打赏
  • 举报
回复
感谢大家的帮助,问题已经解决。 JueZone的方法能够解决这个问题。 还是网络问题,虽然可以FQ,但是AS里Proxy还是要手动填写的。
小Q飞 2018-04-09
  • 打赏
  • 举报
回复
自己去下载对应的gradle版本的包 放在C:\Users\Dell\.gradle\wrapper\dists 文件下 那个dell路径不同的电脑不一样的,你已经打开过肯定有你对应的gradle版本的文件夹了 打开 里面会有有不认识的文件夹 那gradle压缩包放进去 把之前的旧文件删除。重启as 就不去下载gradle包了。
gaga007 2018-04-09
  • 打赏
  • 举报
回复
遇到同样的问题,代理设置不管用
JueZone 2018-04-09
  • 打赏
  • 举报
回复
我这边问题已经解决. 在File/Settings/ Appearance & Behavior/ System Settings/ HTTP Proxy 下如果设置 自动识别代理会出现这个问题. 需要改成 Manul proxy configuration 并且把对应的代理信息填上
JueZone 2018-04-08
  • 打赏
  • 举报
回复
遇到同样问题, 还找到没有解决方法. 在github上看到这个可能是android studio的bug, 在使用代理的情况下可能出现.
r00_a2lBUR 2018-04-07
  • 打赏
  • 举报
回复
我的AS重装了,百度那里还是3.0的
藏锋纳刃 2018-04-06
  • 打赏
  • 举报
回复
但是AS无法访问的网址是可以直接打开的下载的
藏锋纳刃 2018-04-06
  • 打赏
  • 举报
回复
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)
藏锋纳刃 2018-04-06
  • 打赏
  • 举报
回复
有遇到相同情况的大佬吗?

80,350

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧