I got the following error when running build task....
# getting-started
j
I got the following error when running build task.
Task :compileKotlin FAILED
e: /<path>/Handler.kt: (17, 7): Redeclaration: Handler
e: /<the same path>/handler.kt: (17, 7): Redeclaration: Handler
But the problem is, first, I’m on the file system that is case-insensitive, which makes it impossible to have two files with only case different, second, no matter in the project file window or using ls from the terminal, it clearly shows that only one
Handler.kt
exists.
Deleting .gradle folder fixes it.