Skip to main content
Back to Overview
Platforms

Common Android integration issues

Common integration errors​

There are some common errors you may encounter while integrating the Scanbot SDK into your Android app. Here's how to fix them:

android.view.InflateException: Binary XML file line #8: Error inflating class io.scanbot.sdk.ui.camera.ScanbotCameraXView​

Initialize the Scanbot SDK before using any UI components like ScanbotCameraView.

Java.Lang.UnsatisfiedLinkError​

Adjust your Android ABI settings, clean and rebuild your project, then reinstall the app.

No version of NDK matched the requested version XX.X.XXXXXXX​

In Android Studio, open "Preferences" > "Android SDK" > "SDK Tools." Check "Show Package Details," select your desired NDK version, and install it.

Does your Android SDK support Huawei's HarmonyOS?​

Yes, Scanbot SDK can be integrated into a HarmonyOS app.

Why can the size of my Android app increase significantly?​

Check your ABI settings – see docs. Each ABI adds native library files, boosting the APK size.

Always support these two: arm64-v8a and armeabi-v7a. For x86 and x86_64, it depends on your needs – they mainly target emulators and rare devices.

While armeabi-v7a is being phased out, arm64-v8a handles most modern devices.

Optimize your build: Remove unnecessary ABIs from production releases using Gradle. Better yet, consider the Android App Bundle approach for automatic optimization.

Code block showing license key variableCode block showing license key variable