I am late for the answer.
I was also facing the same problem in Android Studio Bumblebee because of the new Gradle syntax for adding dependencies at the project level.
For adding Dagger Hilt in project-level you can use the following syntax:
id 'com.google.dagger.hilt.android' version '2.41' apply false
At the time of writing this, the latest version is 2.41. It is in mavenCentral repository.