Build error after adding Crosswalk plugin to a Cordova Android project

前端 未结 4 995
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-28 09:37

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         


        
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-28 10:03

    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

提交回复
热议问题