I want to connect to remote sql database via jdbc I work on Android Studio But when executing I got this error
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
So How can I add The JDBC Driver to Android Studio ??
I want to connect to remote sql database via jdbc I work on Android Studio But when executing I got this error
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
So How can I add The JDBC Driver to Android Studio ??
Once you have selected the .jar file and your project Synchronizes you can move on to the next steps:
Troubleshooting
In my case I had to uninstall the module and re-install it. The reason was that the module was compiled with Java 1.8 instead of 1.7 (currently supported by Android Studio ver:1.5.1).
You can see the official site of MySQL to download the [JDBC][2].
Then you only need to add the library to Android Studio like any other library.