Search code examples
androidkotlinandroid-gradle-plugin

java.lang.UnsatisfiedLinkError after changing minSdkVersion


After changing minSdkVersion from 21 to 24, i'm receiving exception:

java.lang.UnsatisfiedLinkError: dalvik.system.DexClassLoader[DexPathList[[dex file "/data/user/0/com.test.testprint/files/nepcore.dex"],nativeLibraryDirectories=[/data/app/com.test.testprint-2/lib/arm, /data/resource/lib, /vendor/lib, /system/lib]]] couldn't find "libDeviceConfig.so"

After switching back to minSdk 21, everything back to work.

I also tried to add ndk filters, was not helpful :(

Can anybody help to understand how this exception connected with minSdkVersion?


Solution

  • Was needed to add one line in manifest file, inside application section :)

    <application
      ...
    android:extractNativeLibs="true">