I have sqlcipher integrated in my android application but when I try to run a existing test case now, I get following error:
java.lang.UnsatisfiedLinkError: no sqlcipher in java.library.path
no sqlcipher in java.library.path: [C:\Program Files\Android\Android Studio3\jre\bin, C:\Windows\Sun\Java\bin, C:\Windows\system32, C:\Windows, c:\program files (x86)\smartbear\testcomplete 14\bin, c:\program files (x86)\smartbear\testcomplete 14\x64\bin, C:\ActiveTcl\bin, C:\Users\abc\AppData\Local\Android\Sdk\platform-tools, C:\Windows\system32, C:\Windows, C:\Windows\System32\Wbem, C:\Windows\System32\WindowsPowerShell\v1.0\, C:\Windows\System32\OpenSSH\, C:\Program Files (x86)\Borland\CaliberRM SDK 2008\lib, C:\Program Files\PuTTY\, C:\Program Files\dotnet\, C:\Program Files\Microsoft SQL Server\130\Tools\Binn\, C:\Users\abc\AppData\Local\Programs\Python\Python37\, C:\Program Files\Microsoft SQL Server\120\Tools\Binn\, C:\Users\abc\.dnx\bin, C:\Program Files\Microsoft DNX\Dnvm\, C:\Strawberry\c\bin, C:\Strawberry\perl\site\bin, C:\Strawberry\perl\bin, C:\Program Files (x86)\Gpg4win\..\GnuPG\bin, C:\Program Files (x86)\dotnet\, C:\Users\abc\AppData\Local\Microsoft\WindowsApps, C:\Users\abc\AppData\Local\atom\bin, .]
java.lang.UnsatisfiedLinkError: no sqlcipher in java.library.path: [C:\Program Files\Android\Android Studio3\jre\bin, C:\Windows\Sun\Java\bin, C:\Windows\system32, C:\Windows, c:\program files (x86)\smartbear\testcomplete 14\bin, c:\program files (x86)\smartbear\testcomplete 14\x64\bin, C:\ActiveTcl\bin, C:\Users\abc\AppData\Local\Android\Sdk\platform-tools, C:\Windows\system32, C:\Windows, C:\Windows\System32\Wbem, C:\Windows\System32\WindowsPowerShell\v1.0\, C:\Windows\System32\OpenSSH\, C:\Program Files (x86)\Borland\CaliberRM SDK 2008\lib, C:\Program Files\PuTTY\, C:\Program Files\dotnet\, C:\Program Files\Microsoft SQL Server\130\Tools\Binn\, C:\Users\abc\AppData\Local\Programs\Python\Python37\, C:\Program Files\Microsoft SQL Server\120\Tools\Binn\, C:\Users\abc\.dnx\bin, C:\Program Files\Microsoft DNX\Dnvm\, C:\Strawberry\c\bin, C:\Strawberry\perl\site\bin, C:\Strawberry\perl\bin, C:\Program Files (x86)\Gpg4win\..\GnuPG\bin, C:\Program Files (x86)\dotnet\, C:\Users\abc\AppData\Local\Microsoft\WindowsApps, C:\Users\abc\AppData\Local\atom\bin, .]
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2670)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
at java.base/java.lang.System.loadLibrary(System.java:1873)
at net.sqlcipher.database.SQLiteDatabase$1.loadLibraries(SQLiteDatabase.java:227)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:244)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:223)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:216)
at com.abcd.ab.database.AuditTrailLogger.insertAudit(AuditTrailLogger.java:208)
at com.abcd.ab.database.AuditTrailLogger.auditQcUnlock(AuditTrailLogger.java:181)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:546)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:252)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:89)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
There is related issue I saw which was 6 years ago. Has the answer changed since then, is there any better solution to this problem.