Android Studio – Explicit backing field not working in latest kotlin 2.0.0 android
I am using Kotlin 2.0.0. I was trying in my current android project. I was trying from this video. class MainActivity : ComponentActivity() { val state: StateFlow<Int> field = MutableStateFlow(0) override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { AndroidTheme {…