我正在尝试运行dagger 1.1.0,但我仍然得到例外:
java.lang.IllegalStateException: Module adapter for class com.test.MyAppModule could not be loaded. Please ensure that code generation was run for this module.
在我的pom.xml中,我有:
<dependency>
<groupId>com.squareup.dagger</groupId>
<artifactId>dagger</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>com.squareup.dagger</groupId>
<artifactId>dagger-compiler</artifactId>
<version>1.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.squareup</groupId>
<artifactId>javawriter</artifactId>
<version>1.0.5</version>
<scope>provided</scope>
</dependency>
我也试过使用optional = true。它使用匕首版本1.0.1进行编译,但我无法使其与1.1.0一起使用。 有任何想法吗?