cordova - PhoneGap - Issue adding local plugin -


i'm developing first phonegap plugin , having issues getting work. i've created directory in plugins directory , have created 1 java file (android), plugin.xml , javascript asset file.

i'm trying run using following command:

 phonegap local plugin add plugins\com.test.phonegap.plugins.myfirstplugin 

i following error message:

{ [error: enoent, no such file or directory 'c:\projects\messenger\plugins\com.test.phonegap.plugins.myfirstplugin\plugin.xml']   errno: 34,   code: 'enoent',   path: 'c:\\projects\\messenger\\plugins\\com.test.phonegap.plugins.myfirstplugin\\plugin.xml',   syscall: 'open' }    [error] enoent, no such file or directory 'c:\projects\messenger\plugins\com.test.phonegap.plugins.myfirstplugin\plugin.xml' 

when navigate file, notice contents of plugin's directory have been cleared (really annoying...) , replaced file .fetch.json.

i'm running on windows 7 using phonegap 3.4 , node version 0.10.5. ideas?

when add plugin copied \plugins\plugin_name directory. if there such directory, deleted before adding plugin. if plugin inside plugins folder gets deleted first , therefore can't added anymore.

just place plugin somewhere outside phonegap project directory , then

phonegap local plugin add path_to_plugin 

should work.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -