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.
6 Answers
Just use the below command it will work!
ionic integrations enable cordova --add
2 Comments
Ahmed Adewale
This can cause another issue just copy your .code back if you have pushed it to github before.
Kuldeep Kumar
true, I realized it later, it would be generated angular imports in ionic with umd, therefore be careful, If you cannot restore from git better to got with above solution and delete umd from imports in ts files.
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.
7 Comments
MatTaNg
This was the problem. Thanks
MatTaNg
My config.xml has seemingly been randomly going blank. Anyone have a solution to this?
Víctor Daniel
Do you use git in your project ?
Víctor Daniel
If you use Git, you can use it to recover config.xml content.
xlat
I've got the same issue, each time I stop
ionic cordova run android -l -c --device using ctrl+break (may reproduce with other commands) |
