Android dlopen failed: file offset for the library

2019-08-13 09:10发布

问题:

Hello guys I need your help. I'm stuck with this problem for almost 3 days and cannot go forward.

I'm trying to integrate NexPlayer into my app, but I'm getting this error msg:

java.lang.UnsatisfiedLinkError: dlopen failed: file offset for the library "/data/app/com.abscbn.iwanttv-1/lib/arm/libnexplayerengine.so" >= file size: 0 >= 0

I have already put all .so files to libs folder

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

Any idea how to debug and fix this problem? I would gladly appreciate your help. Thanks!