An exception occurred applying plugin request [id: 'com.google.dagger.hilt.android']
> Failed to apply plugin 'com.google.dagger.hilt.android'.
> API 'applicationVariants' is obsolete.
It will be removed in version 10.0 of the Android Gradle plugin.
The legacy variant API is disabled by default in AGP 9.0, but can be re-enabled by adding
android.enableLegacyVariantApi=true
to this project's gradle.properties file.