gradle clean 失败的因素之一(连不上网)

bash: /Users/nfxchunyun/development/adt-bundle-mac-x86_64-20140321/sdk/tools: is a directory
localhost:trunk nfxchunyun$ gradle clean
                                               
FAILURE: Build failed with an exception.
         
* What went wrong:
A problem occurred configuring root project 'trunk'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve org.apache.httpcomponents:httpclient:4.1.1.
     Required by:
         :trunk:unspecified > com.android.tools.build:gradle:0.6.3 > com.android.tools:sdklib:22.2.1
      > Could not resolve org.apache.httpcomponents:httpclient:4.1.1.
         > Could not parse POM http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.pom
            > Could not resolve org.apache.httpcomponents:httpcomponents-client:4.1.1.
               > Could not HEAD 'http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.1.1/httpcomponents-client-4.1.1.pom'.
                  > org.apache.http.client.ClientProtocolException (no error message)
   > Could not resolve org.apache.commons:commons-compress:1.0.
     Required by:
         :trunk:unspecified > com.android.tools.build:gradle:0.6.3 > com.android.tools:sdklib:22.2.1
      > Could not resolve org.apache.commons:commons-compress:1.0.
         > Could not parse POM http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
            > Could not resolve org.apache.commons:commons-parent:11.
               > Could not HEAD 'http://repo1.maven.org/maven2/org/apache/commons/commons-parent/11/commons-parent-11.pom'.
                  > org.apache.http.client.ClientProtocolException (no error message)
   > Could not resolve org.ow2.asm:asm-analysis:4.0.
     Required by:
         :trunk:unspecified > com.android.tools.build:gradle:0.6.3 > com.android.tools.lint:lint:22.2.1 > com.android.tools.lint:lint-checks:22.2.1
      > Could not resolve org.ow2.asm:asm-analysis:4.0.
         > Could not parse POM http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/4.0/asm-analysis-4.0.pom
            > Could not resolve org.ow2.asm:asm-parent:4.0.
               > Could not HEAD 'http://repo1.maven.org/maven2/org/ow2/asm/asm-parent/4.0/asm-parent-4.0.pom'.
                  > org.apache.http.client.ClientProtocolException (no error message)
   > Could not resolve org.ow2.asm:asm:4.0.
     Required by:
         :trunk:unspecified > com.android.tools.build:gradle:0.6.3 > com.android.tools.lint:lint:22.2.1 > com.android.tools.lint:lint-checks:22.2.1 > com.android.tools.lint:lint-api:22.2.1
      > Could not resolve org.ow2.asm:asm:4.0.
         > Could not parse POM http://repo1.maven.org/maven2/org/ow2/asm/asm/4.0/asm-4.0.pom
            > Could not resolve org.ow2.asm:asm-parent:4.0.
               > Could not HEAD 'http://repo1.maven.org/maven2/org/ow2/asm/asm-parent/4.0/asm-parent-4.0.pom'.
                  > org.apache.http.client.ClientProtocolException (no error message)
   > Could not resolve org.ow2.asm:asm-tree:4.0.
     Required by:
         :trunk:unspecified > com.android.tools.build:gradle:0.6.3 > com.android.tools.lint:lint:22.2.1 > com.android.tools.lint:lint-checks:22.2.1 > com.android.tools.lint:lint-api:22.2.1
      > Could not resolve org.ow2.asm:asm-tree:4.0.
         > Could not parse POM http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/4.0/asm-tree-4.0.pom
            > Could not resolve org.ow2.asm:asm-parent:4.0.
               > Could not HEAD 'http://repo1.maven.org/maven2/org/ow2/asm/asm-parent/4.0/asm-parent-4.0.pom'.
                  > org.apache.http.client.ClientProtocolException (no error message)
         
* Try:   
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
         
BUILD FAILED
         
Total time: 5.388 secs


解决方案:又要本机设置了代理所以不能够正常访问网络。关掉代理即可!





将web代理 和web安全代理的前面的勾去掉!





评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值