This article tries to address following issues while starting Android Studio
- Gradle sync failed: Connection timed out
- Gradle project refresh failed : connection timed out
If you are getting this error while starting Android studio, it will be mostly because its not able to connect to Internet.
Check if you are able to connect to internet from Android Studio.
For this, go to File -> Settings
Type proxy in the search box as shown below.
If you are behind a proxy, provide the details and click check connection.
For setting proxy at a project level, add the following to the graddle.properties file :
Now to rebuild the project, from the menu bar, choose Build -> Rebuild project. It should be able to download the required dependencies and you should get Build Successful message in the Gradle console.
© 2017, https:. All rights reserved. On republishing this post, you must provide link to original post