Gradle is a powerful construction tool, but it is always a headache to build a project operating environment. Various network reasons will cause the project to fail to import successfully.
Let me talk about the solution to this problem, after a long time of tossing, I finally solved it.
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
Cause of the problem:
There is a jce package in jdk, and the access to https caused by the security mechanism will report an error. During the project construction process, resources need to be downloaded from some https websites, so this problem will occur.
Just download the corresponding jar from the official website and replace it. The local_policy.jar and US_export_policy.jar
download addresses in the directory %JAVA_HOME%\jre\lib\security are
JDK7 http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
JDK8 http://www.oracle.com/technetwork/java/javase/downloads /jce8-download-2133166.html
If there is anything wrong or something that can be done better, please share~
Reposted from https://www.cnblogs.com/wwyz/p/6728456.html