Getting Error: Content is not allowed in prolog in Android Studio











up vote
0
down vote

favorite












When i try to build my 1st app "Hello World" in Android Studio, i face this error message. I attach the screenshot also. Anyone having idea how to solve this. enter image description here




C:UsersWINDOWSAndroidStudioProjectsappsrcmainresvaluescolors.xml:1:1:
Error: Content is not allowed in prolog.











share|improve this question









New contributor




SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Post your colors.xml
    – leonardkraemer
    5 hours ago










  • Show your XML file where error occurs so we can help you out
    – Vishal Sharma
    4 hours ago















up vote
0
down vote

favorite












When i try to build my 1st app "Hello World" in Android Studio, i face this error message. I attach the screenshot also. Anyone having idea how to solve this. enter image description here




C:UsersWINDOWSAndroidStudioProjectsappsrcmainresvaluescolors.xml:1:1:
Error: Content is not allowed in prolog.











share|improve this question









New contributor




SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Post your colors.xml
    – leonardkraemer
    5 hours ago










  • Show your XML file where error occurs so we can help you out
    – Vishal Sharma
    4 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











When i try to build my 1st app "Hello World" in Android Studio, i face this error message. I attach the screenshot also. Anyone having idea how to solve this. enter image description here




C:UsersWINDOWSAndroidStudioProjectsappsrcmainresvaluescolors.xml:1:1:
Error: Content is not allowed in prolog.











share|improve this question









New contributor




SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











When i try to build my 1st app "Hello World" in Android Studio, i face this error message. I attach the screenshot also. Anyone having idea how to solve this. enter image description here




C:UsersWINDOWSAndroidStudioProjectsappsrcmainresvaluescolors.xml:1:1:
Error: Content is not allowed in prolog.








android






share|improve this question









New contributor




SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 5 hours ago









leonardkraemer

2,39511425




2,39511425






New contributor




SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









SKD

11




11




New contributor




SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






SKD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    Post your colors.xml
    – leonardkraemer
    5 hours ago










  • Show your XML file where error occurs so we can help you out
    – Vishal Sharma
    4 hours ago














  • 1




    Post your colors.xml
    – leonardkraemer
    5 hours ago










  • Show your XML file where error occurs so we can help you out
    – Vishal Sharma
    4 hours ago








1




1




Post your colors.xml
– leonardkraemer
5 hours ago




Post your colors.xml
– leonardkraemer
5 hours ago












Show your XML file where error occurs so we can help you out
– Vishal Sharma
4 hours ago




Show your XML file where error occurs so we can help you out
– Vishal Sharma
4 hours ago












1 Answer
1






active

oldest

votes

















up vote
0
down vote













There are certainly some weird characters (e.g. BOM) or some whitespace before the XML preamble(<?xml ...?>) check your colors.xml and type below code and add your color codes. I was also facing same issue I followed same steps...



<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#5e5b5b</color>
<color name="colorPrimaryDark">#48464b</color>
<color name="colorAccent">#D81B60</color>
</resources>





share|improve this answer





















  • Actually I tried this one but still my problem is not solved
    – SKD
    2 hours ago











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',
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
});


}
});






SKD is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53203291%2fgetting-error-content-is-not-allowed-in-prolog-in-android-studio%23new-answer', 'question_page');
}
);

Post as a guest
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













There are certainly some weird characters (e.g. BOM) or some whitespace before the XML preamble(<?xml ...?>) check your colors.xml and type below code and add your color codes. I was also facing same issue I followed same steps...



<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#5e5b5b</color>
<color name="colorPrimaryDark">#48464b</color>
<color name="colorAccent">#D81B60</color>
</resources>





share|improve this answer





















  • Actually I tried this one but still my problem is not solved
    – SKD
    2 hours ago















up vote
0
down vote













There are certainly some weird characters (e.g. BOM) or some whitespace before the XML preamble(<?xml ...?>) check your colors.xml and type below code and add your color codes. I was also facing same issue I followed same steps...



<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#5e5b5b</color>
<color name="colorPrimaryDark">#48464b</color>
<color name="colorAccent">#D81B60</color>
</resources>





share|improve this answer





















  • Actually I tried this one but still my problem is not solved
    – SKD
    2 hours ago













up vote
0
down vote










up vote
0
down vote









There are certainly some weird characters (e.g. BOM) or some whitespace before the XML preamble(<?xml ...?>) check your colors.xml and type below code and add your color codes. I was also facing same issue I followed same steps...



<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#5e5b5b</color>
<color name="colorPrimaryDark">#48464b</color>
<color name="colorAccent">#D81B60</color>
</resources>





share|improve this answer












There are certainly some weird characters (e.g. BOM) or some whitespace before the XML preamble(<?xml ...?>) check your colors.xml and type below code and add your color codes. I was also facing same issue I followed same steps...



<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#5e5b5b</color>
<color name="colorPrimaryDark">#48464b</color>
<color name="colorAccent">#D81B60</color>
</resources>






share|improve this answer












share|improve this answer



share|improve this answer










answered 5 hours ago









VikaS

318




318












  • Actually I tried this one but still my problem is not solved
    – SKD
    2 hours ago


















  • Actually I tried this one but still my problem is not solved
    – SKD
    2 hours ago
















Actually I tried this one but still my problem is not solved
– SKD
2 hours ago




Actually I tried this one but still my problem is not solved
– SKD
2 hours ago










SKD is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















SKD is a new contributor. Be nice, and check out our Code of Conduct.













SKD is a new contributor. Be nice, and check out our Code of Conduct.












SKD is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53203291%2fgetting-error-content-is-not-allowed-in-prolog-in-android-studio%23new-answer', 'question_page');
}
);

Post as a guest




















































































Popular posts from this blog

Schultheiß

Liste der Kulturdenkmale in Wilsdruff

Android Play Services Check