csantanapr / grunt-cordovacli

Wraps web app with Cordova CLI using GruntJS
Apache License 2.0
60 stars 31 forks source link

Cannot include cordova-plugin-media #29

Closed OptimusKrish closed 8 years ago

OptimusKrish commented 8 years ago

When trying to include media plugin via npm (cordova plugin add cordova-plugin-media) using grunt build the following error is thrown and media plugin is not getting included for android platform.

Error message: Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev Skipping 'cordova-plugin-media' for android

media_plugin_issue

csantanapr commented 8 years ago

This is not a problem with the grunt plugin. You are trying to add a plugin version that is new and it doesn't support your old version of cordova-android You can fix by upgrading your cordova-android or specifying an older version of the plugin