nschulzke
12/15/2021, 10:47 PMjava.lang.IllegalStateException: Symbol for kotlin.collections/mutableMapOf|-4813910536206556932[0] is unbound
at org.jetbrains.kotlin.ir.symbols.impl.IrBindablePublicSymbolBase.getOwner(IrPublicSymbolBase.kt:52)
at org.jetbrains.kotlin.ir.symbols.impl.IrSimpleFunctionPublicSymbolImpl.getOwner(IrPublicSymbolBase.kt:74)
at androidx.compose.compiler.plugins.kotlin.lower.LiveLiteralTransformer.visitCall(LiveLiteralTransformer.kt:663)
...
freeCompilerArgs += ['-P', 'plugin:androidx.compose.compiler.plugins.kotlin:liveLiterals=false']
freeCompilerArgs += ['-P', 'plugin:androidx.compose.compiler.plugins.kotlin:liveLiteralsEnabled=false']
When I use this, I get this error:
Multiple values are not allowed for plugin option androidx.compose.compiler.plugins.kotlin:liveLiterals
val x = mutableMapOf("something" to "something").apply {
if (bool) {
put("another", "thing")
}
}
To this:
val x = mutableMapOf()
x["something"] = "something"
if (bool) {
x["another"] = "thing"
}
Bradleycorn
12/20/2021, 5:37 PMmutableMap
that was written like @nschulzke mentioned above … I still get this issue.