Unable to add plugin to Cardova

162 views Asked by At

I'm getting an issue with the Cordova PhoneGap application. I'm currently using version 3.4 of Cordova and I'm unable to add a plugin to Cordova.

While running only Cordova in Eclipse or Android Studio, it is throwing an error:

Cordova activity not found.

1

There are 1 answers

1
Guillaume Munsch On

First of all, here's how you create a Cordova Project (We never know)

cordova create hello com.example.hello HelloWorld

Then, go into the project folder and type this:

cordova plugin add your-plugin

Of course, this has to be written directly in a console, I don't think you could do this from Eclipse or Android Studio.

Read this document again if you have doubts : http://cordova.apache.org/docs/en/5.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface