I am getting a Cannot load empty config.xml file when I try to run ionic cordova run android. Has anyone ever encountered this problem before? ionic serve seems to work.
This error is because your global config.xml file is empty for some reason. You should check config.xml file of your Ionic project, it's located in /your/project/path/config.xml and recover its last content.
Just use the below command it will work!
ionic integrations enable cordova --add
ionic integrations enable cordova --add
This solution worked for me. But as I read other posted solutions. I recommend you not to overwrite the resource
folder
Do overwrite config.xml
folder (because in my case this is root of issues).
Thanks and Love
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With