Closed thlengane closed 9 years ago
could u check if ur internet connection is ok?
@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
<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>
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
Great :+1:
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.
What went wrong: A problem occurred configuring project ':app'.
BUILD FAILED
Total time: 1 mins 16.99 secs