title: Could not resolve com.google.guava:listenablefuture:{strictly 1.0} when testing WorkManager
body: <p>I have an app that uses WorkManager for some scheduled tasks, and I'm testing it with the aid of a bunch of different frameworks. It seems relevant to this issue that I'm using robolectric and of course androidx.work:work-testing . </p>
  
  <p>I'm able to run unit tests successfully, but when I attempt to run instrumentation tests, <code>Calculate task graph</code> fails with </p>
  
  <pre><code>Could not determine the dependencies of task ':myModule:mergeDebugAndroidTestResources'.
  &gt; Could not resolve all task dependencies for configuration ':myModule:debugAndroidTestRuntimeClasspath'.
     &gt; Could not resolve com.google.guava:listenablefuture:{strictly 1.0}.
       Required by:
           project :myModule
        &gt; Cannot find a version of 'com.google.guava:listenablefuture' that satisfies the version constraints: 
             Dependency path 'MyApp:myModule:unspecified' --&gt; 'androidx.work:work-testing:2.0.1' --&gt; 'androidx.work:work-runtime:2.0.1' --&gt; 'com.google.guava:listenablefuture:1.0'
             Constraint path 'MyApp:myModule:unspecified' --&gt; 'com.google.guava:listenablefuture:{strictly 1.0}' because of the following reason: debugRuntimeClasspath uses version 1.0
             Dependency path 'MyApp:myModule:unspecified' --&gt; 'org.robolectric:robolectric:4.2.1' --&gt; 'org.robolectric:resources:4.2.1' --&gt; 'com.google.guava:guava:27.0.1-jre' --&gt; 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
  
     &gt; Could not resolve com.google.guava:listenablefuture:1.0.
       Required by:
           project :myModule &gt; androidx.work:work-runtime:2.0.1
        &gt; Cannot find a version of 'com.google.guava:listenablefuture' that satisfies the version constraints: 
             Dependency path 'MyApp:myModule:unspecified' --&gt; 'androidx.work:work-testing:2.0.1' --&gt; 'androidx.work:work-runtime:2.0.1' --&gt; 'com.google.guava:listenablefuture:1.0'
             Constraint path 'MyApp:myModule:unspecified' --&gt; 'com.google.guava:listenablefuture:{strictly 1.0}' because of the following reason: debugRuntimeClasspath uses version 1.0
             Dependency path 'MyApp:myModule:unspecified' --&gt; 'org.robolectric:robolectric:4.2.1' --&gt; 'org.robolectric:resources:4.2.1' --&gt; 'com.google.guava:guava:27.0.1-jre' --&gt; 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
  
     &gt; Could not resolve com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava.
       Required by:
           project :myModule &gt; org.robolectric:robolectric:4.2.1 &gt; org.robolectric:resources:4.2.1 &gt; com.google.guava:guava:27.0.1-jre
        &gt; Cannot find a version of 'com.google.guava:listenablefuture' that satisfies the version constraints: 
             Dependency path 'MyApp:myModule:unspecified' --&gt; 'androidx.work:work-testing:2.0.1' --&gt; 'androidx.work:work-runtime:2.0.1' --&gt; 'com.google.guava:listenablefuture:1.0'
             Constraint path 'MyApp:myModule:unspecified' --&gt; 'com.google.guava:listenablefuture:{strictly 1.0}' because of the following reason: debugRuntimeClasspath uses version 1.0
             Dependency path 'MyApp:myModule:unspecified' --&gt; 'org.robolectric:robolectric:4.2.1' --&gt; 'org.robolectric:resources:4.2.1' --&gt; 'com.google.guava:guava:27.0.1-jre' --&gt; 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
  </code></pre>
  
  <p>Tried adding guava <code>"com.google.guava:guava:27.0.1-android"</code> (against my will) as a testImplementation and an androidTestImplementation and got a <code>Dependency path 'MyApp:mymodule:unspecified' --&gt; 'com.google.guava:guava:27.0.1-jre' --&gt; 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'</code> instead of the line <code>Dependency path 'MyApp:myModule:unspecified' --&gt; 'org.robolectric:robolectric:4.2.1' --&gt; 'org.robolectric:resources:4.2.1' --&gt; 'com.google.guava:guava:27.0.1-jre' --&gt; 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'</code></p>
  
  <p>Some dependencies in my module's build.gradle:</p>
  
  <pre><code>implementation "androidx.work:work-runtime-ktx:2.0.1"
  testImplementation "org.robolectric:robolectric:4.2.1"
  androidTestImplementation "org.robolectric:robolectric:4.2.1"
  androidTestImplementation "androidx.work:work-testing:2.0.1"
  androidTestImplementation "androidx.work:work-testing:2.0.1"
  </code></pre>