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 +=
On Linux
In your modules gradle file ex: app.gradle
sourceSets{ main.java.srcDirs += 'src/main/kotlin/' }