Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
775 views
in Technique[技术] by (71.8m points)

android studio error Error:Connection timed out

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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Just try Invalidate Caches.. Goto File->Invalidate Caches/Restart->Choose "Invalidate and Restart".


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...