DllNotFoundException sqlite not found in android

So I have a problem.

I’m trying to use sqlite on Android device. When I use Scripting Backend on Mono it works perfect, but when I use it on IL2CPP and Architecture is 64 it throws an exception given in the picture:

193821-error.jpg

    Failed to load 'Assets/Plugins/sqlite3.dll', expected x64 architecture, but was x86 architecture. You must recompile your plugin for x64 architecture.
    UnityEngine.StackTraceUtility:ExtractStackTrace ()

193825-sqlite3-dll.jpg

In Android folder there is sqlite3.so file. And it has platform CPU setting for android on ARM64.

Thanks for your help.

I found this guy on the github and it helped me to solve the issue.