[英]Ionic build error with Crosswalk versions < 2.0.0 - “XWalkWebViewEngine is not abstract and does not override abstract method”
Have come back to an Ionic project after a year to update a couple of things but now the project won't build. 一年后重新回到Ionic项目进行了一些更新,但是现在该项目无法构建。
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. 当更新到最新版本时,问题看起来像是人行横道,它可以正常运行,但是我为特定用途而构建的设备使用的是Android 4,该系统仅受人行横道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. 删除所有插件和平台,并以各种顺序重新安装,更新Android SDK等。
I am on a new machine so not sure if it's linked the NPM version or Cordova version. 我在新机器上,因此不确定是否已链接NPM版本或Cordova版本。 For info: npm is 4.3.0 and Cordova is 6.5.0 有关信息:npm是4.3.0,而Cordova是6.5.0
Resolved by re-adding cordova-plugin-crosswalk-webview: 通过重新添加cordova-plugin-crosswalk-webview解决:
cordova plugin rm cordova-plugin-crosswalk-webview
cordova plugin add cordova-plugin-crosswalk-webview
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. 它解决了我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.