Crosswalk crashes: use SharedXWalkView if you want to support general mode

I am using a crosswalk with my cordova app.

I get the following error:

java.lang.ExceptionInInitializerError at org.apache.cordova.CordovaActivity.makeWebView (CordovaActivity.javahaps40) at org.apache.cordova.CordovaActivity.init (CordovaActivity.javahaps76) at org.apache.cordova.CordovaActivity CordovaActivity.java//68) in de.gambify.android.CordovaApp.onCreate (CordovaApp.java:31) in android.app.Activity.performCreate (Activity.java:6374) in android.app.Instrumentation.callActivityOnCreate (Instrumentation.java : 1119) in android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2767) in android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2879) on android.app.ActivityThread.access $ 900 (ActivityThread.java:182) at android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1475) on android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:145) at android.app .ActivityThread.main (ActivityThread.java:6141) in java.lang.reflect.Method.invoke (native method) in java.lang.re flect.Method.invoke (Method.java{72) at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java: 1194) Called: java.lang.RuntimeException: java.lang.RuntimeException: use SharedXWalkView if you want to support general mode in org.xwalk.core.ReflectionHelper.handleException (ReflectionHelper.java:233) in org.xwalk.core.ReflectionHelper .handleException (ReflectionHelper.java:237) at org.xwalk.core.ReflectionHelper.init (ReflectionHelper.java:132) at org.xwalk.core.ReflectionHelper.loadClass (ReflectionHelper.java:199) at org.xwalk.core. XWalkPreferences.setValue (XWalkPreferences.java:112) on org.apache.cordova.CordovaWebView. (CordovaWebView.java:897) ... 17 more Caused by: java.lang.RuntimeException: use SharedXWalkView if you want to support general mode ... 22 more

At first I thought that this is due to the fact that I am creating my application only with ARM support. Now I have connected my application with x86, as well as with ARM support, but still encounter these errors.

What amazes me is the fact that he says that I should use general mode. I am currently using inline mode.

The device with which I see these problems relates to the Galaxy Samsung Galaxy S6 and Samsung Galaxy S6.

I am using crosswalk 12.41.296.9

+6
source share
1 answer

You need to add permissions in AndroidManifest.xml, you can find this file on this platform path /android/CordovaLib/AndroidManifest.xml

Add this:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.INTERNET" /> 

Deploying android-armv7-debug.apk works for me

0
source

Source: https://habr.com/ru/post/987587/


All Articles