Issue
i am using from android Studio but i don't know problem. so i searched in stack overflow but not useful ... please Help ...
I:\New folder\app\src\main\res\values\colors.xml:1:1: Error: Content is not allowed in prolog.
Solution
it looks like the content in color.xml was not in proper as usual format . the content in the auto generated color.xml file has colors value fore project.
for fix,copy and paste this code in color.xml file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>
if the contnet in the color.xml file is always gone like this whenever you create new android studio project ,then fix will be :-
1)click on new file, Invalidate Cache/Restart
if not then reinstall android studio
Answered By - Ashad Nasim
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.