The documentation <here> shows that I can add depe...
# gradle
b
The documentation here shows that I can add dependencies simply by doing the below (Which is what I’ve had for quite a long time).
Copy code
kotlin {
  sourceSets {
    commonMain.dependencies { }
  }
}
However in Kotlin 2.1.20 (Multiplatform) it shows this lint warning under the
dependencies
text > Suspicious receiver type; this does not apply to the current receiver of type NamedDomainObjectContainer. This will apply to a receiver of type NamedDomainObjectProvider, found in one of the enclosing lambdas. Make sure it’s declared in the right place in the file. What should be the approach here instead? It seems like the documentation should be updated
t
I don't see it with the given snippet. Could provide more details?
b
Here’s what the lint warning looks like
t
in which IDEA version do you see it?
b
Copy code
Android Studio Meerkat Feature Drop | 2024.3.2 Canary 8
Build #AI-243.24978.46.2432.13174079, built on March 6, 2025
Runtime version: 21.0.6+-13119726-b895.91 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.4.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 32768M
Cores: 14
Metal Rendering is ON
Registry:
  ide.instant.shutdown=false
  ide.experimental.ui=true
  terminal.new.ui=true
Non-Bundled Plugins:
  com.intellij.marketplace <tel:(243.24978.86|(243.24978.86>)
  dev.j-a.swift (1.3.1.388-243)
  dev.polek.adbwifi (1.2.6)
  Docker <tel:(243.24978.54|(243.24978.54>)
  io.github.composegears.valkyrie (0.13.0)
  com.jetbrains.kmm (0.8.4(243)-3)
  org.jetbrains.compose.desktop.ide (1.7.3)
  com.suusan2go.kotlin-fill-class (2.0.1)
  com.github.copilot (1.5.30-242)
t
and by lint warning - do you mean Android Lint?
b
It may be Android lint. I have both kotlin multiplatform and android library in my plugins
t
I also don't see such a warning in KMP only project opened in Android Studio Meerkat | 2024.3.1 Patch 2 Please open a Google issue for this. I think it is false-positive lint diagnostic
b
After you had me show the version I was on, I saw I was on an older canary compared to the latest, and updated to the latest canary and it looks like it’s gone now. So looks like it’s case closed haha. Thanks for asking that question
👍 1