尝试加载JNI库的Crosswalk错误

时间:2016-09-06 11:02:36

标签: android crosswalk-runtime crosswalk

我的Android应用启动时会出现以下错误:

09-06 12:40:56.787 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.company.MyApp.debug-10/libavformat-55.so': couldn't get XW_Initialize function.
09-06 12:40:56.792 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.company.MyApp.debug-10/libavformat-55.so
09-06 12:40:56.792 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.company.MyApp.debug-10/libxwalkdummy.so': couldn't get XW_Initialize function.
09-06 12:40:56.792 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.company.MyApp.debug-10/libxwalkdummy.so
09-06 12:40:56.797 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.company.MyApp.debug-10/libswresample-0.so': couldn't get XW_Initialize function.
09-06 12:40:56.797 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.company.MyApp.debug-10/libswresample-0.so
09-06 12:40:56.802 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.company.MyApp.debug-10/libgnustl_shared.so': couldn't get XW_Initialize function.
09-06 12:40:56.807 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.company.MyApp.debug-10/libgnustl_shared.so
09-06 12:40:56.812 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.company.MyApp.debug-10/libswscale-2.so': couldn't get XW_Initialize function.
09-06 12:40:56.812 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.company.MyApp.debug-10/libswscale-2.so
09-06 12:40:56.827 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.company.MyApp.debug-10/libFFmpegWrapper.so': couldn't get XW_Initialize function.
09-06 12:40:56.827 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.company.MyApp.debug-10/libFFmpegWrapper.so
09-06 12:40:56.832 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.company.MyApp.debug-10/libavutil-52.so': couldn't get XW_Initialize function.
09-06 12:40:56.832 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.company.MyApp.debug-10/libavutil-52.so
09-06 12:40:56.837 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/com.company.MyApp.debug-10/libavcodec-55.so': couldn't get XW_Initialize function.
09-06 12:40:56.837 12976-13134/com.company.MyApp.debug W/chromium: [WARNING:xwalk_extension_server.cc(412)] Failed to initialize extension: /data/app-lib/com.company.MyApp.debug-10/libavcodec-55.so

这些文件是jniLibs下的所有特定于体系结构的文件。

为什么Crosswalk加载(或试图加载)这些库?什么影响无法加载它们?

1 个答案:

答案 0 :(得分:0)

我通过安装运行以下命令的精简模式的十字路口插件来解决它。

cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_MODE="lite"