Ali Akram
Ali Akram

Reputation: 5327

Dagger dependency conflict android studio

I am using these dependencies in my project together

compile 'com.squareup.dagger:dagger-compiler:1.2.2'
compile 'com.squareup.dagger:dagger:1.2.2'

But i get this error.

Error:Conflict with dependency 'com.squareup:javawriter' in project ':app'. Resolved versions for app (2.5.0) and test app (2.1.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.

Please share any solutions for this.

Thanks !

Upvotes: 1

Views: 324

Answers (1)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 364694

The link in the exception tells you how to remedy this.

configurations.all {
  resolutionStrategy {
    force 'com.squareup:javawriter:2.5.0'
  }
}

Otherwise you can use:

androidTestCompile 'com.squareup:javawriter:2.5.0'

Upvotes: 1

Related Questions