android studio错误错误:连接超时 [英] android studio error Error:Connection timed out

查看:93
本文介绍了android studio错误错误:连接超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在android studio中创建了一个新项目,并向其中添加了gcm模块.
而且我不断给出此错误消息

I just create a new Project in the android studio and add gcm module to it.
and I keep giving this error message

Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.      

并且我不使用任何代理.
有人可以帮我吗?

and I do not use any proxy.
can anyone help me about this?

更新
现在,在重建我的项目后,我给出了这个错误

Update
now after rebuild my project i give this error

Error:A problem occurred configuring project ':app'.    
 A problem occurred configuring project ':backend'.
Could not resolve all dependencies for configuration ':backend:classpath'.
   Could not resolve com.google.appengine:gradle-appengine-plugin:1.9.18.
    Required by:
        PushStart:backend:unspecified
      Could not resolve com.google.appengine:gradle-appengine-plugin:1.9.18.
      Could not get resource 'https://jcenter.bintray.com/com/google/appengine/gradle-appengine-plugin/1.9.18/gradle-appengine-plugin-1.9.18.pom'.
      Could not GET 'https://jcenter.bintray.com/com/google/appengine/gradle-appengine-plugin/1.9.18/gradle-appengine-plugin-1.9.18.pom'.
      Connection to https://jcenter.bintray.com refused

推荐答案

The answer from this SO post might help you.

对于 https设置配置

    systemProp.https.proxyHost=www.somehost.org
    systemProp.https.proxyPort=8080
    systemProp.https.proxyUser=userid
    systemProp.https.proxyPassword=password
    systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost

这篇关于android studio错误错误:连接超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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