Hi all, is there anyone help me about how can I ad...
# gradle
n
Hi all, is there anyone help me about how can I add
kotlin sourceSets
to my project. Below is not working. I am really stuck on it.
Copy code
sourceSets {
        getByName("main").java.srcDirs("src/main/kotlin")
    }
o
did you already apply the kotlin plugin?
n
yes I did so
o
then you should already have this as a sourceset
n
Copy code
plugins {
    id(Plugins.androidApplication)
    kotlin(Plugins.kotlinAndroid)
    kotlin(Plugins.kotlinAndroidExtension)
    kotlin(Plugins.kotlinKapt)
}
@octylFractal order is important here?
o
order is not important
n
It is still
java
looks like a special case
n
Thanks @octylFractal I got the example from doc you sent but it is still same and so annoying 😕
o
n
thanks @octylFractal let me try it out, thanks for your help 🙂
n
Here’s an example, hope it helps
n
@nrobi thanks for comment. I tried it out but as it seems now java folder is disappearing. Should I replace
src
and
resources
strings with anything else?