Device requirements
Android version
Microblink Platform SDK requires Android 7.0 (API level 24) or newer.
Processor architecture
Microblink Platform SDK is distributed with ARMv7 and ARM64 native library binaries.
Microblink Platform is a native library written in C++ and available for multiple platforms. Because of this, Microblink Platform cannot work on devices with obscure hardware architectures. We have compiled SDK's native code only for the most popular Android ABIs.
If you are combining Microblink Platform library with other libraries that contain
native code in your application, make sure to match the architectures of all native
libraries. For example, if the third-party library has only ARMv7 version, you must
use exactly ARMv7 version of Microblink Platform with that library, but not ARM64.
Using different architectures will crash your app at the initialization step because
JVM will try to load all its native dependencies in the same preferred architecture
and fail with UnsatisfiedLinkError.
To avoid this issue and ensure that only architectures supported by the Microblink
Platform library are packaged in the final application, add the following statement
to your android/defaultConfig block inside build.gradle.kts:
android {
...
defaultConfig {
...
ndk {
// Tells Gradle to package the following ABIs into your application
abiFilters += listOf("armeabi-v7a", "arm64-v8a")
}
}
}