A
A
Abdulla Timershin2021-02-18 22:12:04
Java
Abdulla Timershin, 2021-02-18 22:12:04

How to solve "unable to find valid certification path to requested target" issue when building apk?

The day before yesterday I added the onesignal-cordova-plugin plugin to the cordova project
Worked great right after installation.
Last night I want to make another build (cordova build android) and I get this error:
602eba4d6fadc652788617.png

When I delete the plugin, the build is successful.
When I click on these links from the browser, everything is downloaded.
I tried uploading certificates from these sites to the jdk certificate store - to no avail.

Tested with an empty project with this single onesignal plugin - same result.

I've been looking for a solution all day today. In the end, this error still comes up.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Abdulla Timershin, 2021-02-19
@flawlessattila

I searched for solutions in all forums for 2 days, but none of them worked.
Solved by installing a proxy server:
cd android-project-directory/
./gradlew
./gradlew -Dhttps.proxyHost=IP_PROXY -Dhttps.proxyPort=PROXY_PORT "-Dhttp.nonProxyHosts=*.nonproxyrepos.com|localhost"
Proxy taken from here - www.freeproxylists.net/ru/?c=&pt=&pr=HTTPS&a%5B%5D...
And before that I checked it for performance here - https://free.proxy-sale.com/proxy-checker/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question