79358818

Date: 2025-01-15 15:36:17
Score: 2
Natty:
Report link

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.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Heiko Schmitz