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.
node.js ionic-framework
add a comment |
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.
node.js ionic-framework
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
add a comment |
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.
node.js ionic-framework
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.
node.js ionic-framework
node.js ionic-framework
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
add a comment |
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
add a comment |
4 Answers
4
active
oldest
votes
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.
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 stopionic cordova run android -l -c --device
using ctrl+break (may reproduce with other commands)
– xlat
Jul 25 '18 at 21:08
|
show 2 more comments
Just use the below command it will work!
ionic integrations enable cordova --add
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
add a comment |
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.
add a comment |
That file might get randomly deleted, So take that file back,Working for me fine
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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 stopionic cordova run android -l -c --device
using ctrl+break (may reproduce with other commands)
– xlat
Jul 25 '18 at 21:08
|
show 2 more comments
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.
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 stopionic cordova run android -l -c --device
using ctrl+break (may reproduce with other commands)
– xlat
Jul 25 '18 at 21:08
|
show 2 more comments
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.
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.
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 stopionic cordova run android -l -c --device
using ctrl+break (may reproduce with other commands)
– xlat
Jul 25 '18 at 21:08
|
show 2 more comments
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 stopionic 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
|
show 2 more comments
Just use the below command it will work!
ionic integrations enable cordova --add
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
add a comment |
Just use the below command it will work!
ionic integrations enable cordova --add
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
add a comment |
Just use the below command it will work!
ionic integrations enable cordova --add
Just use the below command it will work!
ionic integrations enable cordova --add
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 13 '18 at 1:02
lilhamadlilhamad
16716
16716
add a comment |
add a comment |
That file might get randomly deleted, So take that file back,Working for me fine
add a comment |
That file might get randomly deleted, So take that file back,Working for me fine
add a comment |
That file might get randomly deleted, So take that file back,Working for me fine
That file might get randomly deleted, So take that file back,Working for me fine
answered Apr 5 '18 at 9:03
sandysandy
11
11
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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