Answer the question
In order to leave comments, you need to log in
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:
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
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 questionAsk a Question
731 491 924 answers to any question