I\'m using the latest cordova android (5.1.0). The project is building and running fine without crosswalk, but after I add the crosswalk plugin using
cordov
try this it's working for me.
You must add the plugin before adding the android platform.
cordova -version ==> 5.1.1
Navigate to the project directory
cd cordova/
Remove the android platform
cordova platform rm android
Check the crosswalk plugin is not installed
cordova plugin ls
Add the crosswalk plugin with npm
cordova plugin add cordova-plugin-crosswalk-webview
Add the android platform
cordova platform add android
Build the android project
cordova build android
Run android project
cordova run android
I was having issues after installing Crosswalk, and I found a solution that worked for me here: https://crosswalk-project.org/jira/si/jira.issueviews:issue-html/XWALK-5965/XWALK-5965.html
tl;dr: install the "Android support libraries" from the extras repository (from the Android SDK manager)
If using Ionic (not sure if another platform of framework does the same), the root config.xml template includes the following reference:
<preference name="xwalkVersion" value="17+" />
By removing it and firing a
cordova build android
(and also following @badboyunited 's answer) causes the plugin to be downloaded with the latest version.
Change xwalkVersion preference to 18+
https://crosswalk-project.org/jira/browse/XWALK-7043