PrasadW
PrasadW

Reputation: 427

Unable to add Plugin to Cordova Project 3.1 for Android

I am trying to add 'device' plugin to my project and it is failing.

cordova plugin add org.apache.cordova.device --verbose

and I get following log:

Calling plugman.fetch on plugin "org.apache.cordova.device"
Fetching plugin from location "org.apache.cordova.device"...
Error: Error fetching plugin: Error: connect ETIMEDOUT

I don't understand whats the problem. Do I have to add 'local'?I tried but cordova does not understand local.

Any help appreciated.

Upvotes: 1

Views: 2104

Answers (1)

Amit Gupta
Amit Gupta

Reputation: 8939

Cordova adding plugin using command line tool

Before adding plugins to your application git command line tool is required.

You could download and install git command line for Mac OS X in Git For Mac. For windows, Download Git on For Winows. Then: git clone git://project.url.here

Upvotes: 1

Related Questions