JDBC驱动程序的PostgreSQL在Android项目未找到 [英] JDBC postgresql driver not found in android project

查看:142
本文介绍了JDBC驱动程序的PostgreSQL在Android项目未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用我的Andr​​oid应用PostgreSQL数据库。我是新来开发Android应用。我已经添加了postgresql.jar到构建路径。然而,当我运行该应用程序我得到司机未发现异常。

I am using a postgresql database for my android app. i am new to developing android apps. I have added the postgresql.jar into the build path. However when i run the application i get Driver not found exception.

能否有人请帮助?

推荐答案

如果找不到驱动程序类,因为某些原因,罐子仍不路径。介意罐必须被称为库的文件夹中,而不是LIB。如果它好像什么都没有工作,这是另外一个问题,但错误信息可能应该是不同的。

If the driver class is not found, because of some reasons the jar is still not in the path. Mind that jars must be in the folder called "libs", not "lib". If it will work as if nothing, that is another question, but the error message probably should be different.

这篇关于JDBC驱动程序的PostgreSQL在Android项目未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆