Yang
Yang

Reputation: 1

Gradle project sync failed, connection timed out:connect

When I started studying with a android example project named "HelloWorld2", i started emulator, next i gradle the project, but it occurs with following errors:

Gradle project sync failed. Error:Connection timed out: connect

Messages Gradle Sync

logs are as follows:

Upvotes: 0

Views: 1312

Answers (1)

Dinesh Thiyagarajan
Dinesh Thiyagarajan

Reputation: 480

Go to gradle settings and make sure you have checked the offline work checkbox.

Settings -> Build, Execution, Deployment -> Build tools -> Gradle

and trying resyncing the project

Upvotes: 4

Related Questions