My code was successfully done, but after update the gradle version, every "observing" code became error
Why is gradle making update which is not support to old code? And what should i do to fix this? should i change all of them one by one?
It becomes like this:
viewModel.xxx.observe(viewLifecycleOwner) { //prompted if use "this" //xxx }
or
viewModel.xxxs.observe(viewLifecycleOwner, Observer<List<Video>> { //xxx })
1.4m articles
1.4m replys
5 comments
57.0k users