0

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?

Community
  • 1
  • 1
JSchif11
  • 9
  • 2

1 Answers1

2

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.

Idan Adar
  • 43,235
  • 10
  • 45
  • 83