Closed aphexcx closed 7 years ago
So far after hours of debugging (still no luck), this looks like it's because we're using Dagger in our project, and Scanbot uses RoboGuice. Both of these libraries make use of the javax.inject annotation, and so they clash. I still have not figured out how to make Scanbot work in a project that uses Dagger.
I've tried excluding the javax.inject module with this directive, but it didn't work:
compile ('io.scanbot:sdk-package-1:1.19.0') {
exclude module: 'javax.inject'
}
You can try adding direct dependency for javax.inject
:
compile 'javax.inject:javax.inject:1'
That is supposed to make both RoboGuice and Dagger depend on the same version of javax.inject
. We will look into the problem in more details next year - currently the whole team is on vacation.
Thanks Dmitry. I tried that and it didn't work. Want to try reproducing on your end? Simply try adding Dagger 2.8 to a project that also uses Scanbot 1.19.0.
Hi, any update on this?
We are investigating the issue
Seems like excluding javax.inject
from dagger
dependencies solves the problem.
compile ('com.google.dagger:dagger:2.8') {
exclude (group:'javax.inject', module:'javax.inject')
}
Hi, I can't get our project to build with the Scanbot
"io.scanbot:sdk-package-1:1.19.0"
dependency. build.gradle:Full debug output of
./gradlew
: