max max - 3 months ago 42
Android Question

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?


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
Required by:
Could not resolve
Could not get resource ''.
Could not GET ''.
Connection to refused


The answer from this SO post might help you.

You should add the below lines in the file for the https setings configuration