Gradle compilation error Caused by: javax.net.ssl.SSLException: No PSK available. Unable to resume.

question

Gradle compiles and reports an error Caused by: javax.net.ssl.SSLException: No PSK available. Unable to resume.
This is JDK 11a bug, upgrading to JDK 11.0.3+can solve
the bug: https://bugs.openjdk.java.net/browse/JDK-8213202

solve

  • If you don’t want to upgrade, you can manually modify $JAVA_HOME/conf/security/java.securitythe file, find jdk.tls.disabledAlgorithms=SSLv3the line where is located, add it at the end of the line and , TLSv1.3save the fileinsert image description here
  • Modify gradle.propertiesAdd the following parameter configuration, recompile to solve the problem
    Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2,TLSv1.3
    JAVA_TOOL_OPTIONS=-Dhttps.protocols=TLSv1.2
    

reference

javax.net.ssl.SSLException: No PSK available. Unable to resume
Gradle project appears No PSK available error solution when building

Guess you like

Origin blog.csdn.net/qq_26545503/article/details/128891784