Technical docs‎ > ‎

Project Sync Issues (Android Studio)

Connection to the Internet denied. ('Permission denied: connect')

Unfortunately this is a very generic error message that provides little details about what the actual problem might be.

A possible solution for this issue is to pass the system property '' to the Gradle JVM options in the IDE as follows:
  1. Open the "Settings" page (on Windows and Linux) or "Preferences" page (on MacOS) and select the "Gradle" element on the tree.
  2. On the "Gradle" panel, select your project from the list of "Linked Gradle Projects"
  3. Enter "" in the "Gradle VM options" text field (see image below)
  4. Close dialog

Now you can sync the project by clicking the "Sync Project with Gradle Files" button, on the IDE's toolbar:

Please let us know if this worked for you, or if you have found another way to fix this issue. Thank you.

Alex Ruiz,
Oct 10, 2014, 11:22 AM
Alex Ruiz,
Oct 10, 2014, 11:30 AM