on 06-17-2022 4:09 PM
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...
Hi andy.tan1,
supports the latest Kapsel SDK 3.2 SP04 version Android 13 (API 33)? According to the cordova documentation only cordova 12 supports Android 13.
Best Regards
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The old kapsel SDK only supports cordova-android v9. Please use the latest Kapsel SDK. SMP SDK 3.2 SP04 PL12 supports cordova-android v11.
Please refer to the release notes: https://i7p.wdf.sap.corp/sap/support/notes/2879078
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try the external link of Release Notes: https://launchpad.support.sap.com/#/notes/2879078
User | Count |
---|---|
78 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.