简体   繁体   中英

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.

Is there a way to permanently delete the last block of code?

You cannot alter the Cordova files.

The "cordova_plugins.json" 404 error you're seeing is harmless and will not affect your application in any way.

Newer Cordova releases no longer show this error. In a future Worklight release the bundled Cordova will be upgraded as well and this harmless error will also not be present in 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. In future versions of Cordova, the plugin tooling will generate cordova_plugins.json itself.

For now, he has said it's save to completely ignore the 404 error.

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).

My suggest: ignore it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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