把so文件放到libs/armeabi-v7a目录下,在build.gradle中的android {}添加以下
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
E/AndroidRuntime(22525): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load avformat from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.qd.videorecorder-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.qd.videorecorder-1, /vendor/lib, /system/lib]]]: findLibrary returned null
有些手机放在armeabi目录会出现此类错误,只要将其改为armeabi-v7a目录即可
如还有问题,可重新make一下project试试