<java.lang.RuntimeException: Cannot create an inst...
# stackoverflow
u
java.lang.RuntimeException: Cannot create an instance of class When I start my app, it run fine without error but after run app is crashed everytime.and show logcat Messages com.example.weatherapp, PID: 15301 java.lang.RuntimeException: Cannot create an instance of class com.example.weatherapp.Presentation.WeatherViewModel at androidx.lifecycle.ViewModelProvider$NewInstanceFactory.create(ViewModelProvider.kt:204) at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.kt:322) at...