I have read the artical.
When you are initialising the ViewModel through ViewModelProviders without a factory, this means that you can only instantiate a ViewModel which has no constructor arguments.
The following code is from the project android-room-with-a-view
Why can the project create an instance of class ViewModel with constructor argument without a factory in Kotlin?
Code
wordViewModel = ViewModelProvider(this).get(WordViewModel::class.java)
class WordViewModel(application: Application) : AndroidViewModel(application) {
...
}