java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader

前端 未结 17 1832
耶瑟儿~
耶瑟儿~ 2020-11-29 22:21

Is there someone who had experience with this error?

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file \"/data/app/org.swig         


        
17条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 22:51

    Ensure you have included the different abiFilters, this enables Gradle know what ABI libraries to package into your apk.

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

    If you storing your jni libs in a different directory, or also using externally linked jni libs, Include them on the different source sets of the app.

    sourceSets { 
      main { 
        jni.srcDirs = ['src/main/jniLibs'] 
        jniLibs.srcDir 'src/main/jniLibs' 
        } 
    }
    

提交回复
热议问题