Anyone would know how to remove this warning: ```s...
# gradle
s
Anyone would know how to remove this warning:
Copy code
sourceSets {
    commonMain {
        dependencies {
            implementation kotlin("stdlib-common")
        }
    }
The warning is:
'kotlin' cannot be applied to '(java.lang.String)'
.
g
Have you imported the kotlin plugin?
s
I have this at the top of my build.gradle file:
Copy code
plugins {
    id 'org.jetbrains.kotlin.multiplatform' version '1.3.61'
}
g
Do you have
kts
gradle files?
If so try
implementation(kotlin("stdlib-common"))
s
No. I might convert from Groovy to Kotlin DSL later, but I don't want to do it now.
o
I'm not sure you can use that syntax then, I'm pretty sure the
kotlin(x)
syntax is only available for the Kotlin DSL
👌 1
at least, intellij won't understand where it's coming from, which is why you get the warning
s
Yeah, looks like false(ish) warnings. I'l ignore them for now. 🙂