Can't remove firebase plugin from project


#1

this is what i get when trying to remove firebase from my project

hamdanihamza@Hamza:~/Documents/ionic/Wydad$ cordova plugin remove cordova-plugin-firebase
Uninstalling cordova-plugin-firebase from android
Android Studio project detected
missing file :: app/src/main
Error during processing of action! Attempting to revert...
(node:11590) UnhandledPromiseRejectionWarning: Error: Uh oh!
ENOENT: no such file or directory, open '/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.parseElementtreeSync (/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at AndroidProject.getCustomSubprojectRelativeDir (/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/cordova/lib/AndroidProject.js:105:28)
    at uninstall (/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/cordova/lib/pluginHandlers.js:131:46)
    at ActionStack.process (/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
    at PluginManager.removePlugin (/home/hamdanihamza/Documents/ionic/Wydad/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:148:17)
(node:11590) 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:11590) [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

Maybe try this.

ionic cordova platforms remove android
ionic cordova plugin remove cordova-plugin-firebase
ionic cordova platforms add android

#3

That worked thanks !