java.lang.ClassNotFoundException: org.postgresql.Driver, Android

You need to add the PostgreSQL JDBC Driver in your project as mentioned in


implementation 'org.postgresql:postgresql:42.2.10'



You can also download the JAR and import to your project manually.

NOTE: Compile as used in this answer is deprecated. Replace with implementation as per 3.

Leave a Comment