Type ‘State’ has no method ‘getValue(Nothing?, KProperty)’ and thus it cannot serve as a delegate
If you get a compiler error that observeAsState or getValue are not defined make sure you have the following imports: import androidx.compose.runtime.getValue import androidx.compose.runtime.livedata.observeAsState This information is from Step #4 in the “Using State in Jetpack Compose” codelab.