Ionic - Cannot load empty config.xml file












4















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










share|improve this question























  • check your config.xml whether it is empty or not as well as check whether you have added the android or ios platform

    – Nidhin kumar
    Jan 14 '18 at 13:13
















4















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










share|improve this question























  • check your config.xml whether it is empty or not as well as check whether you have added the android or ios platform

    – Nidhin kumar
    Jan 14 '18 at 13:13














4












4








4


1






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










share|improve this question














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







node.js ionic-framework






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 13 '18 at 18:06









MatTaNgMatTaNg

1811926




1811926













  • check your config.xml whether it is empty or not as well as check whether you have added the android or ios platform

    – Nidhin kumar
    Jan 14 '18 at 13:13



















  • check your config.xml whether it is empty or not as well as check whether you have added the android or ios platform

    – Nidhin kumar
    Jan 14 '18 at 13:13

















check your config.xml whether it is empty or not as well as check whether you have added the android or ios platform

– Nidhin kumar
Jan 14 '18 at 13:13





check your config.xml whether it is empty or not as well as check whether you have added the android or ios platform

– Nidhin kumar
Jan 14 '18 at 13:13












4 Answers
4






active

oldest

votes


















9














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.






share|improve this answer
























  • This was the problem. Thanks

    – MatTaNg
    Feb 3 '18 at 0:38











  • My config.xml has seemingly been randomly going blank. Anyone have a solution to this?

    – MatTaNg
    Feb 3 '18 at 0:38











  • Do you use git in your project ?

    – Víctor Daniel
    Feb 6 '18 at 22:46











  • If you use Git, you can use it to recover config.xml content.

    – Víctor Daniel
    Feb 6 '18 at 22:52






  • 3





    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)

    – xlat
    Jul 25 '18 at 21:08



















8














Just use the below command it will work!



ionic integrations enable cordova --add






share|improve this answer
























  • This can cause another issue just copy your .code back if you have pushed it to github before.

    – lilhamad
    Nov 13 '18 at 1:03











  • 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.

    – kuldeep kumar
    Nov 15 '18 at 15:32



















0














I went to github copied the codes inside my config.xml on my previous push to github, paste it on my local config.xml and walahi it worked.
Try this.






share|improve this answer































    -2














    That file might get randomly deleted, So take that file back,Working for me fine






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48242792%2fionic-cannot-load-empty-config-xml-file%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      9














      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.






      share|improve this answer
























      • This was the problem. Thanks

        – MatTaNg
        Feb 3 '18 at 0:38











      • My config.xml has seemingly been randomly going blank. Anyone have a solution to this?

        – MatTaNg
        Feb 3 '18 at 0:38











      • Do you use git in your project ?

        – Víctor Daniel
        Feb 6 '18 at 22:46











      • If you use Git, you can use it to recover config.xml content.

        – Víctor Daniel
        Feb 6 '18 at 22:52






      • 3





        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)

        – xlat
        Jul 25 '18 at 21:08
















      9














      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.






      share|improve this answer
























      • This was the problem. Thanks

        – MatTaNg
        Feb 3 '18 at 0:38











      • My config.xml has seemingly been randomly going blank. Anyone have a solution to this?

        – MatTaNg
        Feb 3 '18 at 0:38











      • Do you use git in your project ?

        – Víctor Daniel
        Feb 6 '18 at 22:46











      • If you use Git, you can use it to recover config.xml content.

        – Víctor Daniel
        Feb 6 '18 at 22:52






      • 3





        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)

        – xlat
        Jul 25 '18 at 21:08














      9












      9








      9







      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.






      share|improve this answer













      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.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Feb 1 '18 at 15:33









      Víctor DanielVíctor Daniel

      1812




      1812













      • This was the problem. Thanks

        – MatTaNg
        Feb 3 '18 at 0:38











      • My config.xml has seemingly been randomly going blank. Anyone have a solution to this?

        – MatTaNg
        Feb 3 '18 at 0:38











      • Do you use git in your project ?

        – Víctor Daniel
        Feb 6 '18 at 22:46











      • If you use Git, you can use it to recover config.xml content.

        – Víctor Daniel
        Feb 6 '18 at 22:52






      • 3





        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)

        – xlat
        Jul 25 '18 at 21:08



















      • This was the problem. Thanks

        – MatTaNg
        Feb 3 '18 at 0:38











      • My config.xml has seemingly been randomly going blank. Anyone have a solution to this?

        – MatTaNg
        Feb 3 '18 at 0:38











      • Do you use git in your project ?

        – Víctor Daniel
        Feb 6 '18 at 22:46











      • If you use Git, you can use it to recover config.xml content.

        – Víctor Daniel
        Feb 6 '18 at 22:52






      • 3





        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)

        – xlat
        Jul 25 '18 at 21:08

















      This was the problem. Thanks

      – MatTaNg
      Feb 3 '18 at 0:38





      This was the problem. Thanks

      – MatTaNg
      Feb 3 '18 at 0:38













      My config.xml has seemingly been randomly going blank. Anyone have a solution to this?

      – MatTaNg
      Feb 3 '18 at 0:38





      My config.xml has seemingly been randomly going blank. Anyone have a solution to this?

      – MatTaNg
      Feb 3 '18 at 0:38













      Do you use git in your project ?

      – Víctor Daniel
      Feb 6 '18 at 22:46





      Do you use git in your project ?

      – Víctor Daniel
      Feb 6 '18 at 22:46













      If you use Git, you can use it to recover config.xml content.

      – Víctor Daniel
      Feb 6 '18 at 22:52





      If you use Git, you can use it to recover config.xml content.

      – Víctor Daniel
      Feb 6 '18 at 22:52




      3




      3





      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)

      – xlat
      Jul 25 '18 at 21:08





      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)

      – xlat
      Jul 25 '18 at 21:08













      8














      Just use the below command it will work!



      ionic integrations enable cordova --add






      share|improve this answer
























      • This can cause another issue just copy your .code back if you have pushed it to github before.

        – lilhamad
        Nov 13 '18 at 1:03











      • 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.

        – kuldeep kumar
        Nov 15 '18 at 15:32
















      8














      Just use the below command it will work!



      ionic integrations enable cordova --add






      share|improve this answer
























      • This can cause another issue just copy your .code back if you have pushed it to github before.

        – lilhamad
        Nov 13 '18 at 1:03











      • 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.

        – kuldeep kumar
        Nov 15 '18 at 15:32














      8












      8








      8







      Just use the below command it will work!



      ionic integrations enable cordova --add






      share|improve this answer













      Just use the below command it will work!



      ionic integrations enable cordova --add







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Aug 14 '18 at 7:34









      kuldeep kumarkuldeep kumar

      15613




      15613













      • This can cause another issue just copy your .code back if you have pushed it to github before.

        – lilhamad
        Nov 13 '18 at 1:03











      • 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.

        – kuldeep kumar
        Nov 15 '18 at 15:32



















      • This can cause another issue just copy your .code back if you have pushed it to github before.

        – lilhamad
        Nov 13 '18 at 1:03











      • 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.

        – kuldeep kumar
        Nov 15 '18 at 15:32

















      This can cause another issue just copy your .code back if you have pushed it to github before.

      – lilhamad
      Nov 13 '18 at 1:03





      This can cause another issue just copy your .code back if you have pushed it to github before.

      – lilhamad
      Nov 13 '18 at 1:03













      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.

      – kuldeep kumar
      Nov 15 '18 at 15:32





      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.

      – kuldeep kumar
      Nov 15 '18 at 15:32











      0














      I went to github copied the codes inside my config.xml on my previous push to github, paste it on my local config.xml and walahi it worked.
      Try this.






      share|improve this answer




























        0














        I went to github copied the codes inside my config.xml on my previous push to github, paste it on my local config.xml and walahi it worked.
        Try this.






        share|improve this answer


























          0












          0








          0







          I went to github copied the codes inside my config.xml on my previous push to github, paste it on my local config.xml and walahi it worked.
          Try this.






          share|improve this answer













          I went to github copied the codes inside my config.xml on my previous push to github, paste it on my local config.xml and walahi it worked.
          Try this.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 13 '18 at 1:02









          lilhamadlilhamad

          16716




          16716























              -2














              That file might get randomly deleted, So take that file back,Working for me fine






              share|improve this answer




























                -2














                That file might get randomly deleted, So take that file back,Working for me fine






                share|improve this answer


























                  -2












                  -2








                  -2







                  That file might get randomly deleted, So take that file back,Working for me fine






                  share|improve this answer













                  That file might get randomly deleted, So take that file back,Working for me fine







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 5 '18 at 9:03









                  sandysandy

                  11




                  11






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48242792%2fionic-cannot-load-empty-config-xml-file%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Full-time equivalent

                      Bicuculline

                      さくらももこ