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

Parsing /platforms/android/res/xml/config.xml failed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: cordova-android-7.0.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      Description

       

      I get the following error when running cordova run android. Furthermore, the command works with cordova-android 6.4.0 and I am running without any plugin to isolate the issue.

      Parsing /Users/alejandro/Developer/example/platforms/android/res/xml/config.xml failed
      (node:14144) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/alejandro/Developer/example/platforms/android/res/xml/config.xml'
          at Object.fs.openSync (fs.js:579:3)
          at Object.fs.readFileSync (fs.js:485:33)
          at Object.parseElementtreeSync (/Users/alejandro/Developer/example/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
          at new ConfigParser (/Users/alejandro/Developer/example/platforms/android/cordova/node_modules/cordova-common/src/ConfigParser/ConfigParser.js:30:24)
          at updateConfigFilesFrom (/Users/alejandro/Developer/example/platforms/android/cordova/lib/prepare.js:106:18)
          at Api.module.exports.prepare (/Users/alejandro/Developer/example/platforms/android/cordova/lib/prepare.js:42:20)
          at Api.prepare (/Users/alejandro/Developer/example/platforms/android/cordova/Api.js:192:45)
          at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:106:36
          at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
          at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30
      

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alejandrocsb Alejandro
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: