Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova build returns missing plugin.xml

When i build my cordova project i get an warning message as:

Missing file: /home/vijay/workspace/Repos_temp/QuickTraq_Android/plugins/nl.x-services.plugins.toast/plugin.xml

Missing file: /home/vijay/workspace/Repos_temp/QuickTraq_Android/plugins/cordova-plugin-device-rotation-vector/plugin.xml

This happens when i add an plugin or remove an plugin also .

This happens just as a warning when i add a plugin or build the project but when i remove the plugin error occurs as

Error: ENOENT, no such file or directory '/home/vijay/workspace/Repos_temp/QuickTraq_Android/plugins/com.grumpysailor.cordova-plugin-device-rotation-vector/plugin.xml' at Object.fs.openSync (fs.js:439:18) at Object.fs.readFileSync (fs.js:290:15) at Object.module.exports.parseElementtreeSync (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/util/xml-helpers.js:121:27) at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/dependencies.js:56:35 at Array.forEach (native) at Object.module.exports.package.generateDependencyInfo (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/dependencies.js:53:45) at runUninstallPlatform (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/uninstall.js:218:53) at Function.module.exports.uninstallPlatform (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/uninstall.js:81:12) at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/plugin.js:205:58 at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)

and my plugin remove failed .. Is there an way to resolve this ??

like image 301
user3383301 Avatar asked May 14 '15 08:05

user3383301


2 Answers

Remove folder "plugin_name" in rootApp_folder/plugins/plugin_name and try to add again.

like image 22
Diogo Rodrigues Avatar answered Oct 05 '22 05:10

Diogo Rodrigues


The plugin.xml looks to be missing. The path to each added plugin's plugin.xml should be:

 <yourapp>/plugins/<some-plugin>/plugin.xml

If you cannot find the plugin.xml files in those folders, you will have to manually download it from its git resource. Try adding device-rotation-vector's xml from here and then run:

cordova plugin remove cordova-plugin-device-rotation-vector

If it works correctly, do the same for Toast plugin.

You can find the list of plugins installed using:

cordova plugin list
like image 81
Keval Avatar answered Oct 05 '22 05:10

Keval