简体   繁体   English

IBM Worklight 6.0 - 如何操作Cordova.js文件?

[英]IBM Worklight 6.0 - How to manipulate Cordova.js file?

I am having this same problem but when I try to change the cordova.js file within my Android environment, the file is being rewritten during build. 我遇到了同样的问题但是当我尝试在我的Android环境中更改cordova.js文件时,该文件正在构建期间被重写。

Is there a way to permanently delete the last block of code? 有没有办法永久删除最后一段代码?

You cannot alter the Cordova files. 您无法更改Cordova文件。

The "cordova_plugins.json" 404 error you're seeing is harmless and will not affect your application in any way. 您看到的“cordova_plugins.json”404错误是无害的,不会以任何方式影响您的应用程序。

Newer Cordova releases no longer show this error. 较新的Cordova版本不再显示此错误。 In a future Worklight release the bundled Cordova will be upgraded as well and this harmless error will also not be present in Worklight. 在未来的Worklight版本中,捆绑的Cordova也将进行升级,Worklight中也不会出现这种无害的错误。

As written in the link in your question: 如您问题中的链接所示:

Filip Maj of Adobe has said elsewhere that this is due to (so far) partially implemented plugin tooling. Adobe的Filip Maj在其他地方已经说过,这是(到目前为止)部分实现的插件工具。 In future versions of Cordova, the plugin tooling will generate cordova_plugins.json itself. 在Cordova的未来版本中,插件工具将自己生成cordova_plugins.json。

For now, he has said it's save to completely ignore the 404 error. 就目前而言,他已经说完全忽略了404错误。

A workaround for it if you really can't ignore the 404 error is to add a dummy cordova_plugins.json file to the android folder in your project (yourProject\\apps\\yourApp\\android). 如果您真的无法忽略404错误,那么解决方法是将虚拟cordova_plugins.json文件添加到项目中的android文件夹(yourProject \\ apps \\ yourApp \\ android)。

My suggest: ignore it. 我的建议:忽略它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM