MySql Connection中的Java ClassNotFoundException(java.sql.SQLType) [英] Java ClassNotFoundException (java.sql.SQLType) in MySql Connection

查看:64
本文介绍了MySql Connection中的Java ClassNotFoundException(java.sql.SQLType)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Android应用程序,该应用程序连接到正在运行的mysql服务器,但现在出现java.lang.ClassNotFoundException错误:找不到类"java.sql.SQLType".我不知道发生了什么,我唯一改变的是mysql连接器的版本,我正在使用的计算机,请帮助我.

编辑抱歉,缺少有关该项目的信息,但我不知道需要什么来帮助发现问题.我正在将gradle与Java 1.8和Android SDK 9.0(Pie)一起使用

解决方案

显然,它与mysql连接器有关,我将其降级到了旧版本(5.1.46)并可以使用,但是感谢您的帮助./p>

I am developing an android app, which connects to a mysql server that was working, but now a java.lang.ClassNotFoundException error: Didn't find class "java.sql.SQLType". I don't know what happened, the only things I changed was the version of the mysql connector, and the computer I was working on, please help me.

Edit Sorry for the lack of information about the project, but I never know what is needed to help discover the problem. I am using gradle, with java 1.8 and Android SDK 9.0 (Pie)

解决方案

Apparently it has to do with the mysql connector, I downgraded it to the old version (5.1.46) and it worked, but thanks for the help.

这篇关于MySql Connection中的Java ClassNotFoundException(java.sql.SQLType)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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