xiaocong / android-uiautomator-server

MIT License
169 stars 103 forks source link

Builiding Problem #1

Closed thlengane closed 9 years ago

thlengane commented 9 years ago

Hi @xiaocong

I am trying to build this using gradle but I am stuck on some nanohttpd, jsonrpc4j and jackson dependency problem. Please help. How do I point the project to the right address/repository?

Here are the errors I am getting:-

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 1 mins 16.99 secs

xiaocong commented 9 years ago

could u check if ur internet connection is ok?

thlengane commented 9 years ago

@xiaocong

Internet is working fine, see below..

c:\Automation\ui_test\android-uiautomator-server-master>curl https://jcenter.bintray.com/com/nanohttpd/nanohttpd/2.1.1/nanohttpd-2.1.1.pom

4.0.0
    <parent>
            <groupId>com.nanohttpd</groupId>
            <artifactId>nanohttpd-project</artifactId>
            <version>2.1.1</version>
    </parent>
    <artifactId>nanohttpd</artifactId>
    <packaging>jar</packaging>
    <name>NanoHttpd-Core</name>
    <dependencies>
            <dependency>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpclient</artifactId>
                    <version>4.2.5</version>
                    <scope>test</scope>
            </dependency>
            <dependency>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpmime</artifactId>
                    <version>4.2.5</version>
                    <scope>test</scope>
            </dependency>
    </dependencies>

thlengane commented 9 years ago

Hi @xiaocong

I managed to fix this. I had to set the HTTPS proxy on gradle. For some reason, it was not picking up the default proxy and on my cmd, I was only setting HTTP.

Here is the solution in case anyone comes across this problem:

gradle -Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=<port> -Dhttps.proxyHost=<proxy> -Dhttps.proxyPort=<port> build

xiaocong commented 9 years ago

Great :+1: