Android Studio 3.2.1 Gradle Build Fail (colors.xml: “Content is not allowed in prolog”)

android-studio

When I am trying to create a new project in Android Studio 3.2.1, the gradle build is failing.
As per the console the reason is :

C:\Users\Ritangshu\AndroidStudioProjects\app\src\main\res\values\colors.xml:1:1: Error: Content is not allowed in prolog.

This thing once happened some days before but the next day it was working as expected. Yesterday, I found the problem has occurred again.

I have tried uninstalling Android Studio V3.2.1 and reinstalling it, but the issue hasn't been solved…

Best Answer

i had the same problem and i could fix it by deleting three folders and restarting my android studio

C:\Users\(name of your account)\.AndroidStudio3.3

C:\Users\(name of your account)\.android

C:\Users\(name of your account)\AndroidStudioProjects

wish it would be helpful

Related Question