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安全代理的前面的勾去掉!





你可能感兴趣的:(电脑管理)