Ran into this issue today (01/01/2025)
Solved by cleaning gradle cache (gradlew clean) + deleting .gradle, .kotlin, and .idea folders manually.