Luke
06/22/2019, 2:39 PMval foo = "foo"
plugins {
val bar = foo // 'val foo: String' can't be called in this context by implicit receiver. Use explicit one if necessary.
}
If I add this@Build_gradle.
, the error disappears from the code, but I still get an error when I try to build...Dominaezzz
06/22/2019, 2:52 PMDominaezzz
06/22/2019, 2:52 PMNikky
06/22/2019, 4:29 PMNikky
06/22/2019, 4:30 PMLuke
06/22/2019, 9:55 PMNikky
06/22/2019, 10:12 PMefemoney
06/27/2019, 2:57 AMorg.gradle.kotlin.dsl
package. JVM takes care of importing the so-called default (ie empty) package implicitly, while the gradle kotlin DSL implicitly imports all declarations in org.gradle.kotlin.dsl
. Thats why the extensions defined in that package work outta the box.