You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2013/06/20 04:16:20 UTC

[jira] [Resolved] (CB-3934) when plugin added before platform added, plugin not recognized

     [ https://issues.apache.org/jira/browse/CB-3934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj resolved CB-3934.
---------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0

This was resolved in 2.8.20. See [this commit|https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;a=commit;h=da4340c4ace09894ca9d3282558f9d7ffbbb67c3].

If you upgrade to the latest cli tools (we are at 2.8.22 now) it should be resolved.
                
> when plugin added before platform added, plugin not recognized
> --------------------------------------------------------------
>
>                 Key: CB-3934
>                 URL: https://issues.apache.org/jira/browse/CB-3934
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>         Environment: npm 1.2.30
> cordova (cli) 2.8.19
> phonegap 2.8.1
> centos 6
> android sdk tools: 22.0.1
> android build tools: 17
> android platform tools: 17
> /usr/local all owned by me via chown
>            Reporter: Dan Moore
>            Assignee: Filip Maj
>             Fix For: 2.9.0
>
>
> To replicate:
> cordova create Baz
> cd Baz
> cordova plugins add https://github.com/phonegap-build/GAPlugin
> cordova platforms add android
> I see this error message:
> [ReferenceError: pluginsDir is not defined]
> and android.json under plugins is empty: 
> $ cat plugins/android.json 
> {"prepare_queue":{"installed":[],"uninstalled":[]},"config_munge":{},"installed_plugins":{},"dependent_plugins":{}}
> Running cordova build works fine, but the platforms/android/bin directory doesn't appear contain any of the google analytics plugin code
> I tried re-adding the plugin:
> $ cordova plugins add https://github.com/phonegap-build/GAPlugin
> and removing and re-adding the plugin:
> $ cordova plugins remove com.adobe.plugins.GAPlugin
> $ cordova plugins add https://github.com/phonegap-build/GAPlugin
> But neither seemed to work.

--
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