You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a Fake version of a certain class that uses SQLDelight, in the production code it uses the Android SQL driver, but in my instrumentation tests I'd like to use JDBC because it offers more flexibility when developing tests. However whenever I use my Fake I get the following:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libsqlitejdbc.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1081)
at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
at java.lang.System.loadLibrary(System.java:1765)
at org.sqlite.core.NativeDB.<clinit>(NativeDB.java:44)
at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:280)
at org.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:67)
at org.sqlite.jdbc3.JDBC3Connection.<init>(JDBC3Connection.java:28)
at org.sqlite.jdbc4.JDBC4Connection.<init>(JDBC4Connection.java:19)
at org.sqlite.JDBC.createConnection(JDBC.java:104)
at org.sqlite.JDBC.connect(JDBC.java:77)
at java.sql.DriverManager.getConnection(DriverManager.java:580)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at app.cash.sqldelight.driver.jdbc.sqlite.InMemoryConnectionManager.<init>(JdbcSqliteDriver.kt:76)
at app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriverKt.connectionManager(JdbcSqliteDriver.kt:54)
at app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriverKt.access$connectionManager(JdbcSqliteDriver.kt:1)
at app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver.<init>(JdbcSqliteDriver.kt:21)
at app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver.<init>(JdbcSqliteDriver.kt:14)
at com.sxmp.clientsdk.common.service.FakeCommonPersistenceServiceKt.createFakeCommonPersistenceService$default(FakeCommonPersistenceService.kt:13)
at com.sxmp.clientsdk.TestSdkHiltModule$Companion.providesPersistenceService(TestSdkHiltModule.kt:93)
at com.sxmp.clientsdk.TestSdkHiltModule_Companion_ProvidesPersistenceServiceFactory.providesPersistenceService(TestSdkHiltModule_Companion_ProvidesPersistenceServiceFactory.java:45)
In my unit tests (which are pure jvm tests) I use the jdbc driver without an issue, is it not available with AGP?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I created a Fake version of a certain class that uses SQLDelight, in the production code it uses the Android SQL driver, but in my instrumentation tests I'd like to use JDBC because it offers more flexibility when developing tests. However whenever I use my Fake I get the following:
In my unit tests (which are pure jvm tests) I use the jdbc driver without an issue, is it not available with AGP?
Beta Was this translation helpful? Give feedback.
All reactions