Cordova build returns missing plugin.xml

前端 未结 5 1143
独厮守ぢ
独厮守ぢ 2021-01-17 09:44

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

Missing file: /home/vijay/workspace/Repos_temp/QuickTraq_Android/plugins/

相关标签:
5条回答
  • 2021-01-17 09:59

    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
    
    0 讨论(0)
  • 2021-01-17 10:05

    These solutions not worked for me. I just restarted the command prompt, then everything working fine

    0 讨论(0)
  • 2021-01-17 10:08

    SOLVED

    Please try to add the plugin from GitHub repository. I had to install app-preferences plugin. So, I just did it like:

    $ cordova plugin add https://github.com/apla/me.apla.cordova.app-preferences

    0 讨论(0)
  • 2021-01-17 10:09

    Close all Windows that may touch upon the install. Then try to install again.

    W10:... I had an open Command Prompt open to an Android build output folder. The install was unable to delete a file, which failed the install, until after I closed the Command Prompt window.

    0 讨论(0)
  • 2021-01-17 10:14

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

    0 讨论(0)
提交回复
热议问题