Reputation: 379
I am trying to install a cordova plugin using this https://github.com/pushandplay/cordova-plugin-apprate command. After successful execution of this command when I went to eclipse to make further implementation I found many of my projects js and CSS files were missing. Below is what I see on Node.js command prompt.
Fetching plugin "https://github.com/pushandplay/cordova-plugin-apprate.git" via git clone
Repository "https://github.com/pushandplay/cordova-plugin-apprate.git" checked out to git ref "master".
Installing "cordova-plugin-apprate" for android
Fetching plugin "cordova-plugin-dialogs" via npm
Installing "cordova-plugin-dialogs" for android
Fetching plugin "cordova-plugin-globalization" via npm
Installing "cordova-plugin-globalization" for android
Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
Cross-platform AppRate plugin for Cordova / PhoneGap
I am executing the command on plugins folder(D:\Test_Rate\testMobile\plugins>).I am unable to understand what's happening out there.
My environment info:
Cordova CLI: 7.0.0
Node Version: v6.9.4
Android version: 5.1.1
This is what I have tried, 1.)I downgraded cordova version to 6.5.0 and tried to install same problem. 2.)Tried to install by adding --nofetch flag after the command to fetch platforms and plugins using old fetching logic but to no avail. Need some help!
Is anyone of you is facing the same problem? What am I doing wrong? Why the hell this is happening?
Please tell me how to add a plugin in existing cordova project.
Upvotes: 1
Views: 93
Reputation: 53351
You have to edit the root www folder, not the one inside platforms/android/.
The one in platforms/android/ is a copy of the root one and in some cases the content of the root www folder is copied and the changes you made there are lost.
Upvotes: 1