2014-09-02 239 views
0

我 的Android 8.6工作室 搖籃插件0.12.2 SE JDK版本7更新67Gradle項目同步失敗。 Android Studio中

在Android的工作室,一間酒吧彈出,上面寫着 「二級項目同步失敗。」 消息框中顯示「錯誤:權限被拒絕:連接」 我關閉了防火牆並仍然收到相同的錯誤。

我試過了所有我能想到的東西。 任何人都可以幫助我嗎?

這裏的想法日誌

https://code.google.com/p/android/issues/attachmentText?id=75520&aid=755200001000&name=idea.log&token=ABZ6GAdMX-o6HMm5QfRzUo_FPCDpZxKGww%3A1409629650650

這裏的搖籃守護程序日誌全日誌鏈接的一部分。

https://code.google.com/p/android/issues/attachmentText?id=75520&aid=755200002000&name=daemon-5360.out.log&token=ABZ6GAdW5VYzeuv3iYeE7U-HkfF4xTh5dg%3A1409631833795

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 
+1

聽起來像網絡/防火牆問題。 – 2014-09-02 01:27:59

+0

您是否嘗試過使用'--stacktrace','--info'或'--debug'選項來運行Gradle?如果您不確定如何操作,請參閱[使用Gradle命令行](http://www.gradle.org/docs/current/userguide/tutorial_gradle_command_line.html)。 – 2014-09-03 05:42:39

回答

2

我不知道發生了什麼,但現在它的工作原理。

+1

嗨達林,你做了什麼來解決這個問題?我有同樣的情況... – Lahniep 2014-09-30 03:08:35

+8

這是我見過的最好的答案... – 2015-06-26 09:43:37

+1

什麼答案。 :D – Bhoot 2015-11-17 08:42:39

0

這似乎是一些複雜的網絡情況造成的。如果它再次發生,請嘗試在設置中設置http代理。

+0

歡迎來到Stack Overflow!這應該是一個評論,而不是一個答案。一旦[賺取],您可以[發表評論](http://stackoverflow.com/help/privileges/comment)(http://meta.stackexchange.com/questions/146472/what-is-the-best-增加我的聲望和權限)足夠[聲譽](http://stackoverflow.com/help/whats-reputation)。 – 2017-02-10 07:39:47

相關問題