I have Android studio 8.6 Gradle plugin 0.12.2 JDK SE Version 7 Update 67
In Android studio, a bar pops up that says "Grade project sync failed." The message box says "Error:Permission denied: connect" I turned the firewall off and I still get the same error.
I have tried everything I can think of. Can anyone help me?
Here is the idea log
Here is part of the Gradle daemon log with full log in link.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'MyApplication'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:0.12.2.
Required by:
:MyApplication:unspecified
> Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom'.
> Permission denied: connect
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
It's seems like some complicated network situation caused that.If it happens again,try set the http proxy in setting.
I don't know what happened but now it works.