GitHub user breautek edited a comment on the discussion: Android build failing
before launch
>
Exception in thread "main" 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
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
This suggest that gradle cannot make a secure https connection.
Reasons why that may be (in the order of likeliness):
1. I think Java might include its own certificates as well, so out-dated JDK
could also be a problem. Latest android environments requires JDK 17, so you
should double check that you have the latest patch of JDK 17 installed.
2. Your OS is out of date and doesn't have the latest intermediate certificates
3. VPN is manipulating the connection and is preventing a proper handshake
4. HTTP proxy is manipulating the connection and is preventing a proper
handshake
The nature of the error makes it difficult to pinpoint the exact cause, but it
is a client side environment issue.
> Build-Tools 36-rc5
This isn't your issue at hand but will be an issue later. Build Tools 36 is
currently not supported. cordova-android@13 will expect the latest version of
build tools 34. cordova-android@14 will expect the latest version of build
tools 35.
GitHub link:
https://github.com/apache/cordova/discussions/527#discussioncomment-12315149
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]