Removing the dependency on hilt-lifecycle-viewmodel causes the error to go away as it is no longer required in newer versions of hilt.
Simply delete this line from your app level build.gradle
file if you have it.
implementation 'androidx.hilt:hilt-lifecycle-viewmodel:x.x.x'