This page is obsolete. Redirecting to https://developer.android.com/studio/troubleshoot.html#project-sync
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 '-Djava.net.preferIPv4Stack=true' to the Gradle JVM options in the IDE as follows:
Please let us know if this worked for you, or if you have found another way to fix this issue. Thank you.
Technical docs >