Exemplo ViewModelProvider
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
Cautious Caracal
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
implementation "android.arch.lifecycle:extensions:1.0.0"annotationProcessor "android.arch.lifecycle:compiler:1.0.0"
viewModel = ViewModelProvider(this).get(MainActivityViewModel::class.java)