[
https://issues.apache.org/jira/browse/CB-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13570672#comment-13570672
]
Filip Maj commented on CB-2343:
-------------------------------
I am still helping to fix this but I have found the root cause.
For Android, you need to change the {{parent}} attribute of the
{{<config-file>}} element. It should be {{/cordova/plugins}} instead of
{{/plugins}}. Once you do that, installation into Android projects will work.
For iOS, the plugin installation code is looking for a .plist file to determine
if the specified path to your iOS project is an actual iOS project. However, in
2.4.0rc1, we moved from a {{Cordova.plist}} file to a {{config.xml}} file. I am
looking into patching that at the moment.
I will update this issue once I have patches landed and I'll give you
instructions on trying it out :)
> Can not add plugin to project using 'cordova plugin add <path>'
> ---------------------------------------------------------------
>
> Key: CB-2343
> URL: https://issues.apache.org/jira/browse/CB-2343
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.4.0
> Environment: OS X 10.8.2
> Reporter: Joe Reda
> Assignee: Filip Maj
> Labels: cli, plugins
> Fix For: 2.4.0
>
>
> I am unable to add any plugins to my project. To remove variables, I started
> fresh with a new project:
> > cordova create TestPlugin
> > cd TestPlugin
> > cordova platform add ios
> > cordova platform add android
> > cordova plugin add /Users/Joe/Documents/PGSQLitePlugin
> result-> An error occured during plugin installation for android. Error:
> failed to add children to res/xml/config.xml
> The plugin was obtained from here:
> https://github.com/ApplicationCraft/PGSQLitePlugin
> Also, if only the iOS platform is added, the resulting error is 'does not
> appear to be a PhoneGap project'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira