Cannot build ionic 3 app no more


#1

Hello everybody. i am developping an ionic 3 application that suppose to use cordova plugins:

  • SQLite, SQLite Porter,
  • NativeStorage,
  • QR Scanner,
  • Fingerprint,
  • Social share.

But after installing social share plugin using the command:
ionic cordova plugin add cordova-plugin-x-socialsharing

I have got an error saying:

Installing “cordova-plugin-x-socialsharing” for androidller, public formBuilder: FormBuilder) {

Installing “es6-promise-plugin” for android

Failed to install ‘es6-promise-plugin’: Error: ENOENT: no such file or directory, open 'D:\zoom4shop\zoom4shop\platforms\android\AndroidManifest.xml’t } from ‘@angular/core’;
at Object.fs.openSync (fs.js:646:18)oller } from ‘ionic-angular’;
at Object.fs.readFileSync (fs.js:551:33) Validators, AbstractControl } from “@angular/forms”;
at Object.parseElementtreeSync (D:\zoom4shop\zoom4shop\platforms\android\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)d in 9.60 s
at new AndroidManifest (D:\zoom4shop\zoom4shop\platforms\android\cordova\lib\AndroidManifest.js:29:20)
at AndroidProject.getPackageName (D:\zoom4shop\zoom4shop\platforms\android\cordova\lib\AndroidProject.js:99:12)
at Api.addPlugin (D:\zoom4shop\zoom4shop\platforms\android\cordova\Api.js:223:57)
at handleInstall (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:594:10)
at C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:357:28
at _fulfilled (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)

Failed to install ‘cordova-plugin-x-socialsharing’: Error: ENOENT: no such file or directory, open ‘D:\zoom4shop\zoom4shop\platforms\android\AndroidManifest.xml’
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (D:\zoom4shop\zoom4shop\platforms\android\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)
at new AndroidManifest (D:\zoom4shop\zoom4shop\platforms\android\cordova\lib\AndroidManifest.js:29:20)
at AndroidProject.getPackageName (D:\zoom4shop\zoom4shop\platforms\android\cordova\lib\AndroidProject.js:99:12)
at Api.addPlugin (D:\zoom4shop\zoom4shop\platforms\android\cordova\Api.js:223:57)
at handleInstall (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:594:10)
at C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:357:28
at _fulfilled (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
(node:8076) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open ‘D:\zoom4shop\zoom4shop\platforms\android\AndroidManifest.xml’
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (D:\zoom4shop\zoom4shop\platforms\android\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)
at new AndroidManifest (D:\zoom4shop\zoom4shop\platforms\android\cordova\lib\AndroidManifest.js:29:20)
at AndroidProject.getPackageName (D:\zoom4shop\zoom4shop\platforms\android\cordova\lib\AndroidProject.js:99:12)
at Api.addPlugin (D:\zoom4shop\zoom4shop\platforms\android\cordova\Api.js:223:57)
at handleInstall (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:594:10)
at C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:357:28
at _fulfilled (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
(node:8076) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8076) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

from this moment, i cannot build again my app , using the command:
** ionic cordova build android**

Trying it is now giving the error below:

cp: copyFileSync: could not write to dest file (code=ENOENT):D:\zoom4shop\zoom4shop\platforms\android\res\xml\config.xml

Parsing D:\zoom4shop\zoom4shop\platforms\android\res\xml\config.xml failed
(node:6688) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open ‘D:\zoom4shop\zoom4shop\platforms\android\res\xml\config.xml’
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (D:\zoom4shop\zoom4shop\platforms\android\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)
at new ConfigParser (D:\zoom4shop\zoom4shop\platforms\android\cordova\node_modules\cordova-common\src\ConfigParser\ConfigParser.js:30:24)
at updateConfigFilesFrom (D:\zoom4shop\zoom4shop\platforms\android\cordova\lib\prepare.js:106:18)
at Api.module.exports.prepare (D:\zoom4shop\zoom4shop\platforms\android\cordova\lib\prepare.js:42:20)
at Api.prepare (D:\zoom4shop\zoom4shop\platforms\android\cordova\Api.js:192:45)
at C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:106:36
at _fulfilled (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
(node:6688) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6688) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ionic info:

cli packages: (C:\Users\SIGMACOOL\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : not installed

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 25.3.1
Node              : v8.11.2
npm               : 6.0.1
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\SIGMACOOL\AppData\Local\Android\sdk\

Misc:

backend : pro