I got this exception only for one out of several similar view models in my kotlin project. After researching and debugging for several hours I found the very surprising reason. The (super)package was named "new", i.e ".app.new.viewmodel". This makes Hilt crash with a very obscure exception. Since "new" is valid name, I got no errors neither from the IDE nor from the compiler.