Got a run-time exception after adding Crosswalk-lite with ionic-cli

Has anyone tried the crossroads? I added it to my project. The build process was great. But when I launched the application, it broke. I got below exception:

Process: com.ionicframework.xwalklite698410, PID: 23439
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ionicframework.xwalklite698410/com.ionicframework.xwalklite698410.MainActivity}: java.lang.RuntimeException: Failed to create webview.

Does anyone have the same problem?

+4
source share
1 answer

Hi,

We had the same issue. After studying logswith logcatWe found out that the cause is the problem permissions.

just add

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

to AndroidManifest.xml

If it still does not work, add an extra permission

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

Good luck

PS

(if you find a way to add those in config.xml, I will be glad to hear about it :)

+2
source

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


All Articles