Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11645

cordova-android@5.2.2 doesn't install plugins on <= cordova@6.3.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-common
    • None

    Description

      Trying to add cordova-android@5.2.2 or master using cordova@6.2.0 will give the following error when installing the whitelist plugin

      `Failed to install 'cordova-plugin-whitelist':TypeError: pluginInfo.getEditConfigs is not a function
      at PlatformMunger.add_plugin_changes (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:134:42)
      at /Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:126:25
      at _fulfilled (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:834:54)
      at self.promiseDispatch.done (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:863:30)
      at Promise.promise.promiseDispatch (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:796:13)
      at /Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:857:14
      at runSingle (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:137:13)
      at flush (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:125:13)
      at _combinedTickCallback (internal/process/next_tick.js:67:7)
      at process._tickCallback (internal/process/next_tick.js:98:9)
      Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to try adding it again. Error: TypeError: pluginInfo.getEditConfigs is not a function```

      Attachments

        Activity

          People

            Unassigned Unassigned
            stevegill Steve Gill
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: