https://kotlinlang.org logo
#getting-started
Title
# getting-started
j

Jason5lee

10/24/2021, 1:51 AM
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.
3 Views