Content not allowed in prolog in res images

I read other SO answers, but I can't figure it out ... please help me. When I'm tired of copying my splash screen images to the res folder ... after copying the files, I get these errors

home/nteam/OrderliteProject/Orderlite/app/src/main/res/xxxhdpi/sp_bg.png Error:(1, 1) Error: Content is not allowed in prolog. /home/nteam/OrderliteProject/Orderlite/app/src/main/res/hdpi/sp_bg.png Error:(1, 1) Error: Content is not allowed in prolog. /home/nteam/OrderliteProject/Orderlite/app/src/main/res/xxhdpi/sp_bg.png Error:(1, 1) Error: Content is not allowed in prolog. /home/nteam/OrderliteProject/Orderlite/app/src/main/res/mdpi/sp_bg.png Error:(1, 1) Error: Content is not allowed in prolog. /home/nteam/OrderliteProject/Orderlite/app/src/main/res/ldpi/sp_bg.png Error:(1, 1) Error: Content is not allowed in prolog. /home/nteam/OrderliteProject/Orderlite/app/src/main/res/xhdpi/sp_bg.png Error:(1, 1) Error: Content is not allowed in prolog. :app:mergeDebugResources FAILED 

I also tried deleting these images and trying to recompile them, but I started getting the same error. Please help me.

+5
source share
1 answer

You have invalid directory names in /res . Valid directory names for Drawable Resources start with drawable- . For example, drawable-xxxhdpi , drawable-xxhdpi , drawable-xhdpi , etc.

+12
source

Source: https://habr.com/ru/post/1241777/


All Articles