Looking at the Google docs for ViewModel, they show the below sample code on how to get a ViewModel:
val model = ViewModelProviders
In case you watch a video from Udacity where you create a GameViewModel and you do not want to write deprecated code just replace:
viewModel = ViewModelProviders.of(this).get(GameViewModel::class.java)
with the following code:
viewModel = ViewModelProvider(this).get(GameViewModel::class.java)
and return back to reading ASAP!!