Resolve UnsatisifiedLinkError on x64 Devices

On some android devices, specifically those that has x64 architecture, you might run into the following error:

Fatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[
...
couldn't find "libcryptoandros.so"

This error is caused by a missing arm64 folder where android expects to find the .so libraries. To take into account this architecture, you need to add the following to your build.gradle file:

android {
    defaultConfig {
   
     ...

        ndk {
            abiFilters "armeabi-v7a", "x86", "armeabi",   "mips"
        }
    }
    ...
}