Reputation: 5
The below error is shown when attempting to run a new project in Android Studio. Had no issues until now, updating the IDE hasn't worked either.
\Joe\AndroidStudioProjects\FunFactsNew\app\src\main\res\values\colors.xml:5:18: Error: XML document structures must start and end within the same entity.
Any help would be appreciated, thank you!
Upvotes: 0
Views: 746
Reputation: 592
according to official docs colors.xml
don't support <module>
tag.
Look here: https://developer.android.com/guide/topics/resources/more-resources#Color
Try to change it like this for your new project:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>
Upvotes: 1