79477036

Date: 2025-03-01 02:35:30
Score: 1
Natty:
Report link

If none of the above solutions worked for you (as was the case for me), the issue might be unrelated to Hilt itself.

What finally solved it was updating the Room database version in my @Database annotation:

@Database(
    entities = [UserProfile::class],
    version = 10,  // Increase version as needed
    exportSchema = false
)
abstract class AppDatabase : RoomDatabase() { // Your code here }
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Database
  • Low reputation (0.5):
Posted by: Nik