Cordova project with cordova-plugin-mfp plugin fails with error during runtime

0

Whenever i use cordova-plugin-mfp in my cordova project & try to build with command cordova build android --release, one of the cordova plugin which contains .so file goes down.

But the same project works fine without cordova-plugin-mfp plugin. And the same project works fine with cordova-plugin-mfp plugin building with command cordova build android.

I am not able to disclose more about plugin which contains .so file.

Following is the output log:

A/libc: Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 2977 (WebViewCoreThre)

04-06 15:17:23.471 10565-10565/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c

It seems that GetFieldID refers to Null at .c file in the plugin.

android
java-native-interface
ibm-mobilefirst
asked on Stack Overflow Apr 6, 2017 by lev-guddaguda • edited Apr 6, 2017 by lev-guddaguda

1 Answer

0

The release mode excludes some files in the project that might seem unimportant. Can you try setting the attribute "minifyEnabled" to false in the "pcportal-build-extras.gradle" file that gets added along with the mfp plugin and run a cordova build android --release ?

answered on Stack Overflow Apr 9, 2017 by Keerthi

User contributions licensed under CC BY-SA 3.0