我试图运行libvlc的例子.我将vlc编译成

android并将sdk库复制到他们编写的项目中.

https://bitbucket.org/edwardcw/libvlc-android-sample

我发现了这个错误

1236-1236/com.compdigitec.libvlcandroidsample E/VLC/LibVLC﹕ Can't load vlcjni library: java.lang.UnsatisfiedLinkError: Couldn't load vlcjni from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.compdigitec.libvlcandroidsample-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.compdigitec.libvlcandroidsample-1, /system/lib]]]: findLibrary returned null

在这方面他们是问题

try {
System.loadLibrary("vlcjni");
} catch (UnsatisfiedLinkError ule) {
Log.e(TAG, "Can't load vlcjni library: " + ule);
/// FIXME Alert user
System.exit(1);
}

在libs / armeabi-v7a下我有这些文件

gdb.setup

gbdserver

libiomx-hc.so

libiomx-gingerbread.so

libiomx-ics.so

libvlcjni.so

我认为.so文件没有加载.

我怎样才能解决这个问题?

我检查了apk文件,他们没有自己的库.或任何libvlc文件..

这是我的build.gradle文件

apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.compdigitec.libvlcandroidsample"
minSdkVersion 7
targetSdkVersion 17
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {
}
}
}
dependencies {
compile 'com.android.support:support-v4:18.0.0'
}

谢谢