3

I'm trying to discover the specific conflict when adding espresso to my app's gradle file:

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.1') {
    exclude group: 'com.android.support', module: 'support-annotations'
}

Android Studio states "Warning:Conflict with dependency 'com.google.code.findbugs:jsr305'.

Dependency conflict error in my Android app which has Android Tests states the error means the dependency I am using in my app is version 3.0.0 while the one in my test app is 2.0.1.

However, my gradle never explicitly adds "com.google.code.findbugs", indicating it was part of another dependency I added to my "compile" and "androidTestCompile" statements. How do I find the dependencies in my app that are using findbugs?

Community
  • 1
  • 1
user3148156
  • 168
  • 1
  • 1
  • 13

2 Answers2

1

Check your dependencies:

HelloApp/
      app/
           - build.gradle  // local gradle config (for app only)
           ...
      - build.gradle // global gradle config (for whole project)
      - settings.gradle 
      - gradle.properties

Check here:

dependencies {
    compile project(':libraries:lib')
}

Later check this LINK you have Unit testing support orientation

josedlujan
  • 5,357
  • 2
  • 27
  • 49
  • I know where to check my dependencies, I have many dependencies, none of which are com.google.code, which implies that is part of another dependency. – user3148156 Oct 23 '15 at 22:50
1

Execute the following command:

./gradlew app:dependencies

This will print a (large) graph of dependencies.

For the meaning of the arrows and stars, please refer to this SO answer.

Community
  • 1
  • 1
Benoit Duffez
  • 11,839
  • 12
  • 77
  • 125