Skip to Content
0
Jun 17 at 03:09 PM

Kapsel plugins - Cordova Android crash

592 Views Last edit Jun 17 at 03:15 PM 4 rev

Hello,

im using cordova project mobile based on Android.
after upgrading to cordova android v10.1.2 (from 9.1.0)
SAP Kapsel plugins stops working, build succeded, but after running on-device, app crashes immediately

below is the crash log.

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: ********, PID: 15320
    java.lang.NoSuchMethodError: No interface method getActivity()Landroid/app/Activity; in class Lorg/apache/cordova/CordovaInterface; or its super classes (declaration of 'org.apache.cordova.CordovaInterface' appears in /data/app/~~VBnf3GZNn1Vb-Dv1HPzrtw==/*********-KGXrV_E_aodwB35G7dKc2Q==/base.apk!classes3.dex)
        at com.sap.mp.cordova.plugins.core.SMPBasePlugin.initialize(SMPBasePlugin.java:41)
        at com.sap.mp.cordova.plugins.authProxy.AuthProxy.initialize(AuthProxy.java:87)
        at org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:57)
        at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:185)
        at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:108)
        at org.apache.cordova.PluginManager.init(PluginManager.java:96)
        at org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:119)
        at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:152)
        at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:227)
        at ***********.MainActivity.onCreate(MainActivity.java:39)
        at android.app.Activity.performCreate(Activity.java:8290)
        at android.app.Activity.performCreate(Activity.java:8270)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4009)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4201)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2438)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:226)
        at android.os.Looper.loop(Looper.java:313)
        at android.app.ActivityThread.main(ActivityThread.java:8663)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

below is the kapsel SDK plugins im using for cordova project, latest versions

"kapsel-plugin-i18n": "0.0.1-security",
"kapsel-plugin-odata": "^3.15.0",
"kapsel-plugin-logon": "^3.15.0",
"kapsel-plugin-authproxy": "^3.15.0",
"kapsel-plugin-corelibs": "^3.15.0",

help is much appreciated...