4

Has anyone tried the crosswalk-lite? I added it to my project. The build process was fine. But when I ran my app, it broke down. 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.

Is there anyone get the same problem?

Hom
  • 421
  • 1
  • 4
  • 7

1 Answers1

2

Hey there,

We had the same issue. After investigating the logs using logcat We found out that the cause is permissions issue.

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,

P.S

(if you find some way to added those in config.xml i'll be happy to hear about that :)

Community
  • 1
  • 1
oak
  • 2,898
  • 2
  • 32
  • 65
  • You mean what to add? – Hom May 28 '15 at 08:59
  • yes, you need those permissions on order to work with crosswalk – oak May 28 '15 at 14:23
  • I have same issue too. My `AndroidManifest.xml` had those two lines, but still not work. You can see my post :) http://stackoverflow.com/questions/30452079/ionic-starter-cant-run-on-crosswalk-lite-unable-to-start-activity-componentinf – Pewh Gosh May 29 '15 at 01:59
  • already have `android.permission.INTERNET`,`android.permission.ACCESS_NETWORK_STATE`,`android.permission.ACCESS_WIFI_STATE` in manifest file, not work. – Hom May 29 '15 at 06:14
  • maybe you can add the full log file? – oak May 29 '15 at 07:46
  • am.. seems like abug. maybe report to project ? https://crosswalk-project.org/blog/crosswalk-lite-10.html – oak Jun 16 '15 at 16:25