I have the same error
- Problem: In version catalog libs, alias 'hilt-gradle-plugin' is not a valid alias.
,That's how I fixed it by simply updating this the plugin from hilt-gradle-plugin inside gradle --> wrapper (libs.versions.tombl)
hilt-gradle-plugin = { module = "com.google.dagger:hilt-android-gradle-plugin", version.ref = "hilt" }
to this correct one
hilt-gradle = { module = "com.google.dagger:hilt-android-gradle-plugin", version.ref = "hilt