This can happen when gradle fails to process resources.
In my case, it turned out to be an invalid image file in a folder with the ability to draw, so my XML layouts that Android Studio did not run ... for this solution, I prefer both ways
1> check extension and convert them .png to .jpeg
2> if it is useless, then remove from drawable
source share