What is written incorrectly in the toml line

to resolve the dependency from the build app file
kapt(libs.androidx.hilt.compiler) I entered the line into the toml file
androidx.hilt.compiler = { module = “com.google.dagger:hilt-android-compiler”, version.ref = “hilt” } and when synchronizing I get the message On library declaration ‘androidx’ expected to find any of ‘group’, ‘module’, ‘name’, or ‘version’ but found unexpected key ‘hilt’.
How can I correct this line so that the error disappears and I can synchronize the project?

In the TOML file you need to use dashes, not dots.
That’s a “limitation” of the TOML format, as with dots you configure child structures so cannot use them for the name.