13:37:25.068 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: dagger/ObjectGraph
13:37:25.068 [ERROR] [org.gradle.BuildExceptionReporter] at com.google.auto.factory.processor.AutoFactoryProcessor.init(AutoFactoryProcessor.java:75)
13:37:25.068 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.<init>(JavacProcessingEnvironment.java:500)
13:37:25.068 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:597)
13:37:25.068 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:690)
13:37:25.068 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
13:37:25.069 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
13:37:25.069 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
13:37:25.070 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
13:37:25.071 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
13:37:25.071 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.main.Main.compile(Main.java:523)
13:37:25.071 [ERROR] [org.gradle.BuildExceptionReporter] ... 90 more
13:37:25.072 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: dagger.ObjectGraph
13:37:25.072 [ERROR] [org.gradle.BuildExceptionReporter] ... 100 more
有人遇到过类似的问题吗?请帮忙!
我的毕业生有
...
testCompile 'com.android.support:support-annotations:' + ANDROID_SUPPORT_VERSION
testCompile 'com.google.dagger:dagger-compiler:2.5'
testCompile 'org.robolectric:robolectric:3.0'
...
不确定我是否应该添加任何其他库以使其正常工作!