question
Gradle compiles and reports an error Caused by: javax.net.ssl.SSLException: No PSK available. Unable to resume.
This is JDK 11
a 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.security
the file, findjdk.tls.disabledAlgorithms=SSLv3
the line where is located, add it at the end of the line and, TLSv1.3
save the file - Modify
gradle.properties
Add the following parameter configuration, recompile to solve the problemDhttps.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