0

Have come back to an Ionic project after a year to update a couple of things but now the project won't build.

The issue looks to be Crosswalk when updating to the latest version it builds fine but the device I am building for specific uses Android 4 which is only supported by cross walk 1.6.0 - 1.8.0.

The error shown on the output is:

..platforms/android/src/org/crosswalk/engine/XWalkWebViewEngine.java:55:
error: XWalkWebViewEngine is not abstract and does not override abstract method
evaluateJavascript(String,ValueCallback<String>) in CordovaWebViewEngine public
class XWalkWebViewEngine implements CordovaWebViewEngine {

I have been searching the for a while and nothing had worked. Removing all plugins and platforms and reinstalling in various orders, updating Android SDK etc.

I am on a new machine so not sure if it's linked the NPM version or Cordova version. For info: npm is 4.3.0 and Cordova is 6.5.0

Chirag Patel
  • 373
  • 5
  • 20
Lovelock
  • 7,689
  • 19
  • 86
  • 186

2 Answers2

0

Resolved by re-adding cordova-plugin-crosswalk-webview:

cordova plugin rm cordova-plugin-crosswalk-webview
cordova plugin add cordova-plugin-crosswalk-webview
Patrick
  • 1,046
  • 2
  • 10
  • 31
jabu.hlong
  • 2,194
  • 20
  • 21
  • Thanks for the reply, can't believe its been a year nearly since I asked this question! I must have fixed this issue but I hope your answer is useful to someone else. – Lovelock Feb 16 '18 at 10:17
0
try these commands
1.cordova plugin rm cordova-plugin-crosswalk-webview
2.cordova plugin add cordova-plugin-crosswalk-webview@2.2.0
3.cordova platform rm android
4.cordova platform add android@<version>

it has solved my issues.

prabhat
  • 106
  • 3
  • 8