implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation "android.arch.lifecycle:viewmodel:1.1.0"
----------
implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
MyViewModel model = new ViewModelProvider(this).get(MyViewModel.class);
import androidx.appcompat.app.AppCompatActivity;