java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader

前端 未结 17 1834
耶瑟儿~
耶瑟儿~ 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:38

    In my case After running the ndk-build in the jni folder the shared library was created under the libs folder but the path specified in build.gradle

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

    so I need to move the created shared library to jnilibs folder and it worked!

提交回复
热议问题