Skip to content

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

@DavidA94

Description

@DavidA94

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions