Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1936]: 91 could not load needed library 'libavdevice-56.so' for 'libffmpeg_codec.so' (load_library[1091]: Library 'libavdevice-56.so' not found)

//解决的办法是写对加载so库的顺序,就像下面

static { System.loadLibrary("avutil-54");     System.loadLibrary("swresample-1");     System.loadLibrary("swscale-3");     System.loadLibrary("avcodec-56");     System.loadLibrary("avformat-56");     System.loadLibrary("avfilter-5");     System.loadLibrary("avdevice-56");     System.loadLibrary("ffmpeg_codec"); }

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐