I just got the most fun buildcache bug ever :
I had a if(something) {} block,
when something was false, it would still go in it.
when I changed for if(false) {}, same issue
when I removed the block, same issue
I tried on another device, same issue
I did clean and rebuild, same issue
./gradlew cleanBuildCache => fixed !