Expected @AndroidEntryPoint to have a value. Did you forget to apply the Gradle Plugin?

Fortunately, there is simple solution. In build.gradle in database scheme, we should use arguments += instead of arguments = .

defaultConfig{
     javaCompileOptions {
            annotationProcessorOptions {
                arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
            }
        }
}

Or/And in buld.gradle You should apply plugin like: apply plugin 'dagger.hilt.android.plugin'

This solved the problem)


This generic error message can also appear in many circumstances. As a more generic check, ensure that your module's build.gradle file, ensure that you has:

apply plugin: 'dagger.hilt.android.plugin'

at the top.


in the build.gradle of your Android Gradle modules apply the plugin:

apply plugin: 'com.android.application'
apply plugin: 'dagger.hilt.android.plugin'

android {
  // ...
}

see detail here