William Reed
09/17/2021, 6:48 PMfun BaseFlavor.buildConfigString(name: String, value: String?) =
buildConfigField("String", name, if (value == null) "null" else "\"$value\"")
In the first screenshot you can see the error. ApplicationDefaultConfig
is of type BaseFlavor
. In the second screenshot you can see what happens if I manually cast it to BaseFlavor
. Also these aren’t just IDE lint errors, they do the same thing when performing a gradle command from the terminal