I've added SQLite in build.gradle:
dependencies {
compile 'org.xerial:sqlite-jdbc:3.8.9.1'
}
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.xerial:sqlite-jdbc:3.8.9.1'
}
}
Once I want to connect to SQLite DB in code:
groovy.sql.Sql.newInstance(dbLocation, "org.sqlite.JDBC")
It complains that :
java.lang.ClassNotFoundException: org.sqlite.JDBC
What is the reason? How can I fix it?
Aucun commentaire:
Enregistrer un commentaire