0

I am new in phonegap. For creating application, I installed :

  • phonegap desktop
  • phonegap developer app
  • created app in framework7 template using "phonegap desktop"

I was able to install social sharing plugin successfully.

Now, I want to install "cordova-plugin-app-version"(https://github.com/whiteoctober/cordova-plugin-app-version)

i did as per instruction but plugin is not working.

On installing plugin folder created in plugins folder. My question is, it is need to copy all required files to "platforms" folder?

2 Answers 2

1

When you install the plugin, Cordova will install it in the plugins directory.

You need to build your application, then Cordova will update each platform with the changes you have made to the project.

Build or run your project, and then you will find the new plugin in the platforms directory (platforms//plugins).

cordova run android 
Sign up to request clarification or add additional context in comments.

Comments

1

If you have already added the platform before installing the plugin, the plugin installation should happen automatically in all platforms while adding the plugin in Cordova CLI using following command:

cordova plugin add PLUGIN_NAME

If it does not happen for some reason, you may remove and re-add the platform once to resolve this in cordova CLI using following commands:

cordova platform rm PLATFORM_NAME

cordova platform add PLATFORM_NAME

8 Comments

"platforms" folder contains only "browser" directory and "platforms.json" file. so, i added android using this command: cordova platform add android and got the below error: screencast.com/t/pPcojiJn
@KirtiUmrigar Please check out this link to resolve the above error - stackoverflow.com/questions/41394419/… Do upvote answers if they were useful.
I have already tried that, but not working. i read in comment about adding "java bin path ", so i am confused, is it necessary too?
@KirtiUmrigar Setting java options is enough. In path variable, u can add your java instalaltion path but that dont through up this error. Also try each time on new command prompt
ok. thank you @Gandhi :). Setting java options, and restart pc and it is working. able to add android in platforms folder. able to add plugin. thanks. but unfortunately plugin is not working.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.