'Android Studio getting class not found exception on connecting database

I am connecting to PostgreSQL using JDBC in Android Studio. I have downloaded latest versions of driver and added in libs folder. I added JAR as library and added to dependency. I have added all internet permission and gave port no 5432 and IPV4 address of my laptop while connecting to my mobile. But, I am getting errors in classloader.java file as java Lang Management Factory not found, etc. I am debugging the same from 72 hours but I didn't got the resolution.

enter image description here

enter image description here enter image description here

enter image description here

enter image description here

enter image description here



Sources

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

Source: Stack Overflow

Solution Source