However, I’m seeing an error with LiveData. Basica...
# android
g
However, I’m seeing an error with LiveData. Basically, saying LiveData is abstract (which makes sense) and
Initializer is not allowed here because this property has no backing field
n
You're not supposed to initialize the LiveData, you're supposed to set a custom getter for it, of which you're doing wrongly. It's supposed to look like this: val word:LiveData<String> get() = _word