I am also getting same error. But after searching all over I didn't get any answer. But I remembered that I was upgrading all dependencies. So I was sure about that must be issue in any dependencies and then I checked all by revert upgraded dependency one by one. Then I found the issue and that was in Hilt version 2.56.2 and I downgrade that version to 2.56.1 and that working fine now. Please check there may same issue in your project
Try
Hilt version 2.56.2 --> 2.56.1
or try to downgrade of dependency if you have just upgraded any one.