简体   繁体   中英

"Class not found java.lang.ClassNotFoundException: org.sqlite.JDBC

How to solve this in android-studio ?

"Class not found java.lang.ClassNotFoundException: org.sqlite.JDBC

Eception: java.sql.SQLException: No suitable driver found for jdbc:sqlite:C:/sqlite/sqlite/db/compdb.db"

In Eclipse data inserted successfully but not in android studio. After importing the eclipse project in the android-studio , the above error displays.

Please help me in this regard.

Download sqlite-jdbc-3.7.2.jar

Add it to gradle dependencies, must solve your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM