Answers for "java.lang.runtimeexception: cannot create an instance of class viewmodel at androidx.lifecycle.viewmodelprovider$newinstancefactory.create"

2

java.lang.RuntimeException: Cannot create an instance of class ViewModel

if you are using Hilt, ensure your "activity/fragment" 
is having" @AndroidEntryPoint " annotation
Posted by: Guest on October-20-2021

Code answers related to "java.lang.runtimeexception: cannot create an instance of class viewmodel at androidx.lifecycle.viewmodelprovider$newinstancefactory.create"

Browse Popular Code Answers by Language