'AndroidStudio webview doesn't load untrusted certificate

I have a webpage that I show with a webview in Android Studio. To see the web page I use a https request with a self-signed certificate. Unfortunately Android Studio doesn't recognize the certificate and return a white page. What can I do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source