简体   繁体   English

Crosswalk版本低于2.0.0的离子生成错误-“ XWalkWebViewEngine不是抽象的,并且不会覆盖抽象方法”

[英]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.

相关问题 错误:MainApplication 不是抽象的,并且不会覆盖抽象方法 - error: MainApplication is not abstract and does not override abstract method 不抽象,不覆盖抽象方法 - Not abstract and does not override abstract method 它显示错误不是抽象的,并且不会覆盖 OnClickListener 中的抽象方法 onClick(View) - It shows error is not abstract and does not override abstract method onClick(View) in OnClickListener 错误:不是抽象的,并且不会覆盖OnTabSelectedListener中的抽象方法onTabReselected(Tab) - Error : is not abstract and does not override abstract method onTabReselected(Tab) in OnTabSelectedListener 错误:MainActivity 不是抽象的,并且不会覆盖 FABProgressListener 中的 onFABProgressAnimationEnd() 抽象方法 - error: MainActivity is not abstract and does not override abstract method onFABProgressAnimationEnd() in FABProgressListener 错误:匿名类不是抽象的,并且不覆盖抽象方法 - Error: anonymous class is not abstract and does not override abstract method 错误:MainActivity 不是抽象的,并且不会覆盖 OnClickListener 中的抽象方法 onClick(View) - Error: MainActivity is not abstract and does not override abstract method onClick(View) in OnClickListener 错误:ConstantsService 不是抽象的,并且不会覆盖 ConstantsInterface 中的抽象方法 getAppScopeKey() - error: ConstantsService is not abstract and does not override abstract method getAppScopeKey() in ConstantsInterface 不是抽象的,并且不重写onConnectionFailed(ConnectionResult)的抽象方法 - Is not abstract and does not override abstract method onConnectionFailed(ConnectionResult) StatusBar不是抽象的,不会覆盖onPreferenceChange上的抽象方法 - StatusBar is not abstract and does not override abstract method onPreferenceChange
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM