Cordova.plugins.diagnostic compatible with cordova-android 7.1.1


#1

hello guys >
i was update my app,so when i run

ionic cordova build android

this error show>>>>>>>>>>>
Failed to install ‘cordova.plugins.diagnostic’: Error: ENOENT: no such file or directory, open ‘D:\ionic\ionic44\platforms\android\AndroidManifest.xml’
_ at Object.fs.openSync (fs.js:646:18)_
_ at Object.fs.readFileSync (fs.js:551:33)_
_ at Object.parseElementtreeSync (D:\ionic\ionic44\platforms\android\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)_
_ at new AndroidManifest (D:\ionic\ionic44\platforms\android\cordova\lib\AndroidManifest.js:29:20)_
_ at AndroidProject.getPackageName (D:\ionic\ionic44\platforms\android\cordova\lib\AndroidProject.js:99:12)_
_ at Api.addPlugin (D:\ionic\ionic44\platforms\android\cordova\Api.js:223:57)_
_ at handleInstall (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:594:10)_
_ at C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:357:28_
_ at fulfilled (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
(node:8208) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open ‘D:\ionic\ionic44\platforms\android\AndroidManifest.xml’
_ at Object.fs.openSync (fs.js:646:18)_
_ at Object.fs.readFileSync (fs.js:551:33)_
_ at Object.parseElementtreeSync (D:\ionic\ionic44\platforms\android\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)_
_ at new AndroidManifest (D:\ionic\ionic44\platforms\android\cordova\lib\AndroidManifest.js:29:20)_
_ at AndroidProject.getPackageName (D:\ionic\ionic44\platforms\android\cordova\lib\AndroidProject.js:99:12)_
_ at Api.addPlugin (D:\ionic\ionic44\platforms\android\cordova\Api.js:223:57)_
_ at handleInstall (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:594:10)_
_ at C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:357:28_
_ at fulfilled (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
_ at self.promiseDispatch.done (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)_
(node:8208) 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:8208) [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.
_ at self.promiseDispatch.done (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)_

ionic info is

Ionic:

** ionic (Ionic CLI) : 4.1.1 (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\ionic)**
** Ionic Framework : ionic-angular 3.9.2**
** @ionic/app-scripts : 3.2.0**

Cordova:

** cordova (Cordova CLI) : 8.0.0**
** Cordova Platforms : android 7.1.1**
** Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.0, (and 24 other plugins)**

System:

** Android SDK Tools : 25.2.3 (C:\Users\ahmadklsany\AppData\Local\Android\sdk)**
** NodeJS : v8.11.4 (C:\Program Files\nodejs\node.exe)**
** npm : 5.6.0**
** OS : Windows 10**


#4

FYI, it’s not specific to this plugin: