Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

563
Views
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?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

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

<application
  ...
android:extractNativeLibs="true">
over 4 years ago · Santiago Trujillo Report

0

For minSdk >= 23 and Android Gradle Plugin >= 4.2.0, need to use useLegacyPackaging in app's build.gradle file instead of extractNativeLibs in Androidmanifest.xml

Sample usage of DSL to package compressed native libraries (can be found here)

android {
    packagingOptions {
        jniLibs {
            useLegacyPackaging true
        }
    }
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!