我 的Android 8.6工作室 搖籃插件0.12.2 SE JDK版本7更新67Gradle項目同步失敗。 Android Studio中
在Android的工作室,一間酒吧彈出,上面寫着 「二級項目同步失敗。」 消息框中顯示「錯誤:權限被拒絕:連接」 我關閉了防火牆並仍然收到相同的錯誤。
我試過了所有我能想到的東西。 任何人都可以幫助我嗎?
這裏的想法日誌
這裏的搖籃守護程序日誌全日誌鏈接的一部分。
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
聽起來像網絡/防火牆問題。 – 2014-09-02 01:27:59
您是否嘗試過使用'--stacktrace','--info'或'--debug'選項來運行Gradle?如果您不確定如何操作,請參閱[使用Gradle命令行](http://www.gradle.org/docs/current/userguide/tutorial_gradle_command_line.html)。 – 2014-09-03 05:42:39