Android Studio Compile Error "Content Is Not Allowed in Prolog"

Android studio compile error Content is not allowed in prolog

in "res" directory I create new "database" directory

That is not supported. You cannot invent new resource directories.

Please put the files in res/raw/ (and use via getResources().openRawResource()) or assets/ (and use via getAssets().open()).

Content is not allowed in prolog. in android studio

I was using the latest version of gradle classpath dependency

classpath "com.android.tools.build:gradle:4.2.1"

I changed it to

classpath "com.android.tools.build:gradle:4.2.0"

Magically, all errors are gone.

Content is not allowed in prolog during Gradle build

After a lot of struggle and searching online, i finally solve the problem.

I deleted all the cached folders in gradle and when i build my new project. It work like magic.
Thanks @ישו אוהב אותך for reply and trying to help me.

Build error :colors.xml:1:1: Error: Content is not allowed in prolog

Sounds like you've hit a known issue that has affected a lot of people on Windows. It happens if your system is shutdown suddenly or Android Studio is killed. The team is aware of this issue and is working on identifying the cause.

You can follow the progress on https://issuetracker.google.com/119638289

Content is not allowed in prolog. Getting this error while building my android project

I got this error because version number of my firebase dependencies are not same. I fix this error by changing the version number.

Android Studio, Gradle Errors. Content not allowed in Prolog

You could try clearing your gradle cache: gradle clean --refresh-dependencies and delete the contents of ~/.gradle/caches. Should help.

For more details, see https://stackoverflow.com/a/22670684/1243753



Related Topics



Leave a reply



Submit