I have the same issue out of nowhere. I have plenty of unit tests with space characters in their method names. It has always been building without any issue. And I don't know why, after I upgraded to Ladybug Feature Drop, I get this error. I don't know if it's related to the AS version. I cannot identify which dependency could be the cause, when I revert the changes in build.gradle, the issue is still present. It's corrected when I change the minSdk to 30 instead of 26. But 30 is too high. I haven't updated Gradle or AGP.
Anyone encountering the same issue recently ?