FATAL EXCEPTION: main
Process: com.maksytech.fishermantest_germany, PID: 30746
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.maksytech.fishermantest_germany/com.maksytech.fishermantest_germany.MainActivity}: java.lang.RuntimeException: Failed to create webview.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3742)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3890)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
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:2393)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loopOnce(Looper.java:238)
at android.os.Looper.loop(Looper.java:357)
at android.app.ActivityThread.main(ActivityThread.java:8088)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957)
Caused by: java.lang.RuntimeException: Failed to create webview.
at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:84)
at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:216)
at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:212)
at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:153)
at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:234)
at com.maksytech.fishermantest_germany.MainActivity.onCreate(MainActivity.java:40)
at android.app.Activity.performCreate(Activity.java:8479)
at android.app.Activity.performCreate(Activity.java:8458)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1386)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3723)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3890)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
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:2393)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loopOnce(Looper.java:238)
at android.os.Looper.loop(Looper.java:357)
at android.app.ActivityThread.main(ActivityThread.java:8088)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957)
Caused by: java.lang.NoSuchMethodException: org.apache.cordova.engine.SystemWebViewEngine. [class android.content.Context, class org.apache.cordova.CordovaPreferences]
at java.lang.Class.getConstructor0(Class.java:2363)
at java.lang.Class.getConstructor(Class.java:1759)
at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:81)
at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:216)
at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:212)
at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:153)
at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:234)
at com.maksytech.fishermantest_germany.MainActivity.onCreate(MainActivity.java:40)
at android.app.Activity.performCreate(Activity.java:8479)
at android.app.Activity.performCreate(Activity.java:8458)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1386)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3723)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3890)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
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:2393)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loopOnce(Looper.java:238)
at android.os.Looper.loop(Looper.java:357)
at android.app.ActivityThread.main(ActivityThread.java:8088)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957) ``
I wonder, which rule should I add to make it working with cordova 12?
Hi. Im getting next error:
FATAL EXCEPTION: main Process: com.maksytech.fishermantest_germany, PID: 30746 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.maksytech.fishermantest_germany/com.maksytech.fishermantest_germany.MainActivity}: java.lang.RuntimeException: Failed to create webview. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3742) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3890) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) 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:2393) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loopOnce(Looper.java:238) at android.os.Looper.loop(Looper.java:357) at android.app.ActivityThread.main(ActivityThread.java:8088) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957) Caused by: java.lang.RuntimeException: Failed to create webview. at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:84) at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:216) at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:212) at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:153) at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:234) at com.maksytech.fishermantest_germany.MainActivity.onCreate(MainActivity.java:40) at android.app.Activity.performCreate(Activity.java:8479) at android.app.Activity.performCreate(Activity.java:8458) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1386) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3723) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3890) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) 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:2393) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loopOnce(Looper.java:238) at android.os.Looper.loop(Looper.java:357) at android.app.ActivityThread.main(ActivityThread.java:8088) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957) Caused by: java.lang.NoSuchMethodException: org.apache.cordova.engine.SystemWebViewEngine. [class android.content.Context, class org.apache.cordova.CordovaPreferences]
at java.lang.Class.getConstructor0(Class.java:2363)
at java.lang.Class.getConstructor(Class.java:1759)
at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:81)
at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:216)
at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:212)
at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:153)
at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:234)
at com.maksytech.fishermantest_germany.MainActivity.onCreate(MainActivity.java:40)
at android.app.Activity.performCreate(Activity.java:8479)
at android.app.Activity.performCreate(Activity.java:8458)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1386)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3723)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3890)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
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:2393)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loopOnce(Looper.java:238)
at android.os.Looper.loop(Looper.java:357)
at android.app.ActivityThread.main(ActivityThread.java:8088)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957) ``
I wonder, which rule should I add to make it working with cordova 12?