ContextAmbient.current is not available, is there ...
# compose
s
ContextAmbient.current is not available, is there alternative way to get current Context ?
l
what do you mean its not available?
s
k
@Socheat KHAUV Does building the project throws the same error? It might be the problem of kotlin plugin.
s
l
does this happen for all ambients? for example,
DensityAmbient
?
v
It seems to me it var(val) context = ContextAmbient.current works fine. To understand an error, it is better to write OS details, AS details, Kotlin plugin details, Compose version.
s
@Val Salamakha , yeah you are right. my project is dev-03, i update to dev-11, it works (Y)