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

Plugins not for Android fail to install for Android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.0
    • None
    • cordova-android

    Description

      I am trying to update my project to 7.0.0 for cordova-android, however we have some plugins that are failing to install when re-installing the android platform.

      Installing "zestia-cordova-plugin-activity" for android
      Failed to install 'zestia-cordova-plugin-activity': Error: ENOENT: no such file or directory, open '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml'
          at Object.fs.openSync (fs.js:646:18)
          at Object.fs.readFileSync (fs.js:551:33)
          at Object.parseElementtreeSync (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
          at new AndroidManifest (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidManifest.js:29:20)
          at AndroidProject.getPackageName (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidProject.js:99:12)
          at Api.addPlugin (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/Api.js:223:57)
          at handleInstall (/Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:594:10)
          at /Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:357:28
          at _fulfilled (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:787:54)
          at self.promiseDispatch.done (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:816:30)
      Error: ENOENT: no such file or directory, open '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml'
      

      This specific plugin only has configuration for iOS platforms. Do I need to change something in the plugins I've written internally?

      Attachments

        1. cordova-commons.png
          41 kB
          Gianluca Pinoci

        Activity

          People

            bowserj Joey Robert Bowser
            tombell Tom Bell
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: