My android project is written 100% in Kotlin and I wanted to rename the java directory to kotlin to be consistent. I added
sourceSets{ main.java.srcDirs +=
I have the same. It happens only in "Android" view. When I navigate to that folder in Finder it's named 'kotlin'. Looks like it's a bug in the Android studio.