Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
cordova-android-7.0.0
-
None
-
None
-
local packages:
Cordova Platforms : android 7.1.0 ios 4.5.4
Cordova Plugins: none
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
ios-sim : 6.1.2
Node : v10.4.1
npm : 6.1.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
Environment Variables:
ANDROID_HOME : /Users/alejandro/Library/Android/sdk
local packages: Cordova Platforms : android 7.1.0 ios 4.5.4 Cordova Plugins: none System: Android SDK Tools : 26.1.1 ios-deploy : 1.9.2 ios-sim : 6.1.2 Node : v10.4.1 npm : 6.1.0 OS : macOS High Sierra Xcode : Xcode 9.4.1 Build version 9F2000 Environment Variables: ANDROID_HOME : /Users/alejandro/Library/Android/sdk
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