错误:未知主机"jcenter.bintray.com". [英] Error:Unknown host 'jcenter.bintray.com'.

查看:212
本文介绍了错误:未知主机"jcenter.bintray.com".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:未知主机'这通常是主机名解析期间的一个临时错误,表示本地服务器未收到来自权威服务器的响应.您可能需要在Gradle中调整代理设置. 启用Gradle离线模式"并同步项目
了解有关配置HTTP代理的信息在Gradle中

Error:Unknown host 'This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server'. You may need to adjust the proxy settings in Gradle. Enable Gradle 'offline mode' and sync project
Learn about configuring HTTP proxies in Gradle

推荐答案

转到文件">项目结构",然后:

Go to File > Project Structure and then:

  • 在左侧菜单中选择项目
  • 在Android插件存储库和默认库存储库中将jcenter更改为jcenter()
  • Select project in the left-hand menu
  • change jcenter to jcenter() in the Android plugin Repository and Default Library Repository

这篇关于错误:未知主机"jcenter.bintray.com".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆