Re: ASyncTask doInBackground when getConnection
Posted by: Shaun van Wyngaard
Date: August 26, 2019 06:23AM

So I found an old project that was using a driver called "mysql-connector-java-5.1.42-bin.jar", and updated the line in build.gradle to

implementation files('libs/mysql-connector-java-5.1.42-bin.jar')
previously: implementation files('libs/mysql-connector-java-8.0.17.jar')

and suddenly it all works perfectly. hope this helps someone.

Options: ReplyQuote

Written By
Re: ASyncTask doInBackground when getConnection
August 26, 2019 06:23AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.