Build error after adding Crosswalk plugin to a Cordova Android project

怎甘沉沦 提交于 2019-11-30 02:14:57
badboyunited

try this it's working for me.

You must add the plugin before adding the android platform.

cordova -version ==> 5.1.1
  1. Navigate to the project directory

    cd cordova/

  2. Remove the android platform

    cordova platform rm android

  3. Check the crosswalk plugin is not installed

    cordova plugin ls

  4. Add the crosswalk plugin with npm

    cordova plugin add cordova-plugin-crosswalk-webview

  5. Add the android platform

    cordova platform add android

  6. Build the android project

    cordova build android

  7. Run android project

    cordova run android

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.

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)

Change xwalkVersion preference to 18+

https://crosswalk-project.org/jira/browse/XWALK-7043

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!