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'
...
それを機能させるために他のライブラリを追加する必要があるかどうかわかりません!