square / dagger

A fast dependency injector for Android and Java.
https://square.github.io/dagger/
Apache License 2.0
7.31k stars 3.07k forks source link

Dagger 2: NoClassDefFoundError: dagger/producers/ProducerModule #495

Closed jagbirsingh125 closed 9 years ago

jagbirsingh125 commented 9 years ago

up vote 0 down vote favorite I am trying to integrate Dagger 2 with eclipse and the libs that I have used are as follows:

dagger-2.0.jar dagger-compiler-2.0.jar guava-13.0.1.jar javawriter-1.0.5.jar javax.annotation-api-1.2.jar javax.inject-1.jar Java Compiler -> Annotation processing has been enabled All the above have been added to the Factory Path

But I get the following error when I build the project: Description Resource Path Location Type

Internal compiler error: java.lang.NoClassDefFoundError: dagger/producers/ProducerModule at dagger.internal.codegen.ComponentProcessor.initSteps(ComponentProcessor.java:90) BuildConfig.java /DIDemo/gen/com/example/didemo line 0 Java Problem Could someone please help?

JakeWharton commented 9 years ago

Dagger 2 is here: https://github.com/google/dagger.