Madrapps / dagger-plugin

Plugin that supports easy usage of Dagger 2 library in IntelliJ iDEA or Android Studio
Apache License 2.0
30 stars 9 forks source link

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

Open DavidA94 opened 3 years ago

DavidA94 commented 3 years ago

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.

thsaravana commented 3 years ago

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