title: Cannot create an instance of class ViewModel in Kotlin
body: <p>I'm trying to initialize <strong>viewmodel</strong> in Fragment but each time I want to pass the interface in my viewmodel constructor it throws the error <strong>Cannot create an instance of class ViewModel</strong> 
  Also I don't have any problem in <strong>kotlin-kapt</strong> or any <strong>lifecycle annotations</strong></p>
  
  <p>here is my ViewModel class </p>
  
  <pre><code>class SettingsViewModel (
         var settingsView: SettingsView
      ) : ViewModel(){ }
  </code></pre>
  
  <p>and here is my fragment where i want to initialize the viewmodel</p>
  
  <pre><code>class SettingsFragment : Fragment(), SettingsView {
  
       var viewmodel :SettingsViewModel? = null
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
      }
  
      override fun onCreateView(
          inflater: LayoutInflater, container: ViewGroup?,
          savedInstanceState: Bundle?
      ): View? {
          // Inflate the layout for this fragment
  
           viewmodel = ViewModelProviders.of(this).get(SettingsViewModel(this)::class.java)
  
          val binding =
              DataBindingUtil.inflate&lt;FragmentSettingsBinding&gt;(inflater, R.layout.fragment_settings, container, false)
                  .apply{}
  
  
          return binding.root
      }
  </code></pre>