摇篮工程同步失败。 Android的工作室 [英] Gradle project sync failed. Android Studio

查看:268
本文介绍了摇篮工程同步失败。 Android的工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有
Android的工作室8.6
摇篮插件0.12.2提供动力
SE JDK版本7更新67

在Android的工作室,一间酒吧弹出,上面写着二级项目同步失败。
消息框显示错误:权限被拒绝:连接
我把防火墙关闭,我仍然得到同样的错误。

我已经试过所有我能想到的。
谁能帮我?

下面是观念日志

<一个href=\"https://$c$c.google.com/p/android/issues/attachmentText?id=75520&aid=755200001000&name=idea.log&token=ABZ6GAdMX-o6HMm5QfRzUo_FPCDpZxKGww%3A1409629650650\" rel=\"nofollow\">https://$c$c.google.com/p/android/issues/attachmentText?id=75520&aid=755200001000&name=idea.log&token=ABZ6GAdMX-o6HMm5QfRzUo_FPCDpZxKGww%3A1409629650650

下面是摇篮守护程序日志全在日志中链接的一部分。

<一个href=\"https://$c$c.google.com/p/android/issues/attachmentText?id=75520&aid=755200002000&name=daemon-5360.out.log&token=ABZ6GAdW5VYzeuv3iYeE7U-HkfF4xTh5dg%3A1409631833795\" rel=\"nofollow\">https://$c$c.google.com/p/android/issues/attachmentText?id=75520&aid=755200002000&name=daemon-5360.out.log&token=ABZ6GAdW5VYzeuv3iYeE7U-HkfF4xTh5dg%3A1409631833795

 故障:建立失败,一个例外。* 什么地方出了错:
发生问题的根源配置项目的所有MyApplication。
&GT;无法解析配置所有的依赖:类路径。
   &GT;无法解析com.android.tools.build:gradle:0.12.2。
     要求:
         :所有MyApplication:不详
      &GT;不能让'http://jcenter.bintray.com/com/android/tool​​s/build/gradle/0.12.2/gradle-0.12.2.pom。
         &GT;权限被拒绝:连接*尝试:
与--stacktrace选项获取堆栈跟踪运行。与--info或--debug选项来运行,以获得更多的日志输出。构建失败


解决方案

我不知道发生了什么事,但现在它的作品。

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

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

Here is part of the Gradle daemon log with full log in link.

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

解决方案

I don't know what happened but now it works.

这篇关于摇篮工程同步失败。 Android的工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆