如何将 jingle_peerconnection_so.so 文件加载到 Eclipse 中的 android 项目?

How to load jingle_peerconnection_so.so file to an android project in eclipse?

我在 运行 项目时遇到以下错误。我不知道如何将 jingle_peerconnection_so.so 文件添加到 eclipse 中的 android 项目?

java.lang.UnsatisfiedLinkError: Couldn't load jingle_peerconnection_so from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.nandha.quickblox.videocall-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.nandha.quickblox.videocall-1, /vendor/lib, /system/lib]]]: findLibrary returned null

缺少一个 JNI 文件。 将文件 libjingle_peerconnection_so.so 添加到 src/main

中的 jniLib 文件夹

这个文件应该在webrtc文件夹的output目录下

使用System.load("location of .so file");要么 System.load图书馆("location of .so file");