Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic - Cannot load empty config.xml file

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.

enter image description here

like image 545
MatTaNg Avatar asked Jan 13 '18 18:01

MatTaNg


3 Answers

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.

like image 178
Víctor Daniel Avatar answered Nov 04 '22 08:11

Víctor Daniel


Just use the below command it will work!

ionic integrations enable cordova --add

like image 31
Kuldeep Kumar Avatar answered Nov 04 '22 08:11

Kuldeep Kumar


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

like image 44
Waseem Ahmad Naeem Avatar answered Nov 04 '22 07:11

Waseem Ahmad Naeem