Tried by reimporting from scratch, and although it...
# gradle
a
Tried by reimporting from scratch, and although it showed the “not a gradle project” warning, the sync worked, so maybe some kind of edgy case for the IDE