dagger-plugin icon indicating copy to clipboard operation
dagger-plugin copied to clipboard

Getting "Dagger does not support injection into private fields" when Dagger is not in the classpath

Open DavidA94 opened this issue 3 years ago • 1 comments

I have the Dagger plugin installed in IntelliJ, for projects which use Dagger.

I have another project which uses Spring. In one of my files, which uses Spring injection, using the javax.inject.Inject annotation, IntelliJ gives the following error on all private fields which are annotated with @Inject.

Dagger does not support injection into private fields

When Dagger is on in the classpath, then the Dagger plugin should not be active.

DavidA94 avatar May 28 '21 03:05 DavidA94

Will be fixing this in the next update. Which version of the plugin are you using?

thsaravana avatar Aug 20 '21 00:08 thsaravana