Build problems with cordova-plugin-crosswalk-webview plugin

Hi,
I’m migrating app from PhoneGap Build
When trying to build on Android, I get this error:

UserError: Failed to install ‘cordova-plugin-crosswalk-webview’: CordovaError: Using “requireCordovaModule” to load non-cordova module “q” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.

I hope you can help me.

You probably want to move away from this plugin. It hasn’t been updated in more than 4 years. The author has archived it and says there will be no fixes or new versions. A lot of changed in Android and Cordova over the years: any reason you can’t use the standard webview?

Here’s some more information on this error. You’re not the first to have it.

Thanks for answering.
Is there an alternative to the cordova-plugin-crosswalk-webview plugin?

We’ve just approved cordova-plugin-crosswalk-webview-v3 - but I have no idea whether it will work any better.

The ReadMe for this plugin says this:

  • Crosswalk does not work for Android 10+ devices. I recommend you split the app in 2 different projects, one with crosswalk and one without. The one without crosswalk must support minimum android 7 (sdk level 26).

Hello.
I opted to use the “cordova-plugin-crosswalk-webview-xjp” plugin, but now it shows me the following problem:

Failed to restore plugin “cordova-plugin-crosswalk-webview-xjp”.
You might need to try adding it again.
Error: Error: Cannot find module ‘elementtree’

Please, could you help me.