Android Studio: Gradle sync failed: Connection timed out: connect

I copied a project that was created else where. After removing these proxy credentials:





in the, it worked like a charm.

I think it’s a network issue. My project currently fails to build unless I pass the –offline argument to gradle.
I think the S3 outage is impacting repos hosting dependencies.

Try ./gradlew tasks --offline

Or, to make android studio run in offline mode, follow the instructions:

For me it was the firewall. Definitely, only that. After adding Android Studio to it’s whitelist everything is working like a charm.

Leave a Comment