Dan Moore created CB-3934:
-----------------------------

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


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

Reply via email to