java.lang.NoClassDefFoundError: org.sqlite.SQLiteConnection
exception.I've imported this dependency 'org.xerial:sqlite-jdbc:3.18.0'
in my gradle and my code is as follows,try {
Class.forName("org.sqlite.JDBC");
Connection connection = DriverManager.getConnection("jdbc:sqlite:handhelds.db");
} catch (ClassNotFoundException eString) {System.err.println("Could not init JDBC driver - driver not found");
} catch (java.sql.SQLException e) {e.printStackTrace();}