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.
C:UsersWINDOWSAndroidStudioProjectsappsrcmainresvaluescolors.xml:1:1:
Error: Content is not allowed in prolog.
android
New contributor
add a comment |
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.
C:UsersWINDOWSAndroidStudioProjectsappsrcmainresvaluescolors.xml:1:1:
Error: Content is not allowed in prolog.
android
New contributor
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
add a comment |
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.
C:UsersWINDOWSAndroidStudioProjectsappsrcmainresvaluescolors.xml:1:1:
Error: Content is not allowed in prolog.
android
New contributor
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.
C:UsersWINDOWSAndroidStudioProjectsappsrcmainresvaluescolors.xml:1:1:
Error: Content is not allowed in prolog.
android
android
New contributor
New contributor
edited 5 hours ago
leonardkraemer
2,39511425
2,39511425
New contributor
asked 5 hours ago
SKD
11
11
New contributor
New contributor
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
add a comment |
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
add a comment |
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>
Actually I tried this one but still my problem is not solved
– SKD
2 hours ago
add a comment |
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>
Actually I tried this one but still my problem is not solved
– SKD
2 hours ago
add a comment |
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>
Actually I tried this one but still my problem is not solved
– SKD
2 hours ago
add a comment |
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>
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>
answered 5 hours ago
VikaS
318
318
Actually I tried this one but still my problem is not solved
– SKD
2 hours ago
add a comment |
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
add a comment |
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.
SKD is a new contributor. Be nice, and check out our Code of Conduct.
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
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
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
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
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
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