[Error] Adding android to project


#1

I’m having the following issue when I run ionic cordova platform add android

Failed to install ‘cordova-sqlite-storage’: Error: ENOENT: no such file or directory, open ‘/home/barreola/thesisProduct/platforms/android/AndroidManifest.xml’
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (/home/barreola/thesisProduct/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
at new AndroidManifest (/home/barreola/thesisProduct/platforms/android/cordova/lib/AndroidManifest.js:29:20)
at AndroidProject.getPackageName (/home/barreola/thesisProduct/platforms/android/cordova/lib/AndroidProject.js:99:12)
at Api.addPlugin (/home/barreola/thesisProduct/platforms/android/cordova/Api.js:223:57)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)

(node:21724) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open ‘/home/barreola/thesisProduct/platforms/android/AndroidManifest.xml’
(node:21724) [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.


#2

Does this file exist?

What is your ionic info output?


#3

I don’t know what happen, it might be a VS Code error, but now its not showing that error.
Can you please check my last topic?