Hi everyone, this is my first time posting here, I...
# android
l
Hi everyone, this is my first time posting here, I am wondering if anyone know the issue with dokka HTML generation. When I was running dikkaHtml Gradle task in Android Studio (4.2 canary 10 ) terminal,
Copy code
./gradlew dokkaHtml
it failed with the following exception.
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I thought it had something to do with the Java version(1.8.0_261) or no JAVA_HOME set, after attempting to set JAVA_HOME, the problem still happened. I am wondering anyone know of this issue and how to work around it? Thanks in advance!
z
Does this happen when you run from the regular terminal, outside AS? Might want to ask in #dokka if so.
h
I guess you are in special network environment, like a company network, kind of that network often uses custom (not public authorized) certification for https. If my assume is right, you have to import the custom certification to your jdk. You can find a way at below link. https://stackoverflow.com/a/45512588
l
Thank Both, it was running in AS terminal and the network environment might cause this issue, I will look into.
Thanks for your information
🙂 1
The problem is resolved by rebooting the laptop. 🙂