'Didn't find class "java.sql.DriverAction" on path: DexPathList; Failed resolution of: Ljava/sql/DriverAction;

I'm using uiautomator and writing test in Java. So the thing is when i'm trying to connect to Oracle18 database via ojdbc8 i'm getting this error. Any help appreciated! Here is my build.gradle(:app) dependencies:

implementation 'com.oracle.database.jdbc:ojdbc8:19.6.0.0'
implementation 'com.oracle.database.nls:orai18n:19.6.0.0'

Does anyone know why the java.sql.DriverAction can't be downloaded and how can i make the gradle download it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source