Answer the question
In order to leave comments, you need to log in
Is it possible to set up dagger 2 on a java console application (not android)?
Hello everyone
, Please tell me how to solve the problem. I have a java console project, I'm trying to connect dagger2 to it. The problem is that auto code is not generated from annotations. Most likely not correctly (or not connected) the annotation processor in the gradle.
Answer the question
In order to leave comments, you need to log in
MB you need to connect the compiler. Try:
buildscript {
repositories {
mavenCentral()
}
}
// Add Dagger dependencies
dependencies {
compile 'com.google.dagger:dagger:2.7'
compile 'com.google.dagger:dagger-compiler:2.7'
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question