In my case it was an xml selector. In the first line I had two of these (thanks to copy paste among my files):
<?xml version="1.0" encoding="utf-8"?>
and Android Studio didn’t give any warning or something. Removing it fixed the problem but it needed a full clean build afterwards.