Add Media plugin in PhoneGap CLI 5.0.0 (Android)

Firstly, open terminal and globally install the latest cordova (if it isn’t already global):

$ sudo npm install -g cordova

Then open your phonegap project root in terminal and run the following to add the plugin:

$ cordova plugin add

Once this has successfully been added, open config.xml and add the following entry:

<feature name="Media">
     <param name="android-package" value="" />

I guess you just have to add config entries for another platforms.