2

I installed Apache Cordoba and run:

cordova build android --debug --stacktrace

To this I get an error:

Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/2.1/android-maven-gradle-plugin-2.1.pom'.      
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

In android studio the same: enter image description here

I import from serticate jcenter.bintray.com via java tools enter image description here

And run command:

java SSLPoke jcenter.bintray.com 443

I got an answer: SUCCESS

My java:

D:\dev>java -version
Picked up _JAVA_OPTIONS: -Xmx512M
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) Client VM (build 25.161-b12, mixed mode)

What else do i need with these certificates?

Alex
  • 153
  • 8

1 Answers1

2

Add both http and https proxy like following

gradlew -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8144
Swayangjit
  • 1,875
  • 2
  • 13
  • 22