title: Instrumented test: could not find dependencies
body: <p>I'm trying to launch a simple instrumented test on my project, but something gone wrong. This is my simple test class (the default one):</p>
  
  <pre><code>@RunWith(AndroidJUnit4::class)
  class ExampleInstrumentedTest {
      @Test
      fun useAppContext() {
          // Context of the app under test.
          val appContext = InstrumentationRegistry.getTargetContext()
          assertEquals("com.mypackage.a123myappkotlin", appContext.packageName)
      }
  }
  </code></pre>
  
  <p>but when i try launch it, i obtain this error:</p>
  
  <pre><code>Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
  Dependency path '123myappkotlin:app:unspecified' --&gt; 'com.squareup.okhttp3:logging-interceptor:3.12.0' --&gt; 'com.squareup.okhttp3:okhttp:3.12.0'
  Dependency path '123myappkotlin:app:unspecified' --&gt; 'com.squareup.okhttp3:mockwebserver:3.14.0' --&gt; 'com.squareup.okhttp3:okhttp:3.14.0'
  Dependency path '123myappkotlin:app:unspecified' --&gt; 'com.squareup.retrofit2:retrofit:2.4.0' --&gt; 'com.squareup.okhttp3:okhttp:3.10.0'
  Dependency path '123myappkotlin:app:unspecified' --&gt; 'com.squareup.retrofit2:converter-gson:2.4.0' --&gt; 'com.squareup.retrofit2:retrofit:2.4.0' --&gt; 'com.squareup.okhttp3:okhttp:3.10.0'
  Constraint path '123myappkotlin:app:unspecified' --&gt; 'com.squareup.okhttp3:okhttp' strictly '3.12.0' because of the following reason: debugRuntimeClasspath uses version 3.12.0
  Constraint path '123myappkotlin:app:unspecified' --&gt; 'com.squareup.okhttp3:okhttp' strictly '3.12.0' because of the following reason: debugRuntimeClasspath uses version 3.12.0
  </code></pre>
  
  <p>this is my relative app gradle for the dependency that appears on this error</p>
  
  <pre><code>implementation "com.squareup.okhttp3:logging-interceptor:$logger_interception_version"
  androidTestImplementation "com.squareup.okhttp3:logging-interceptor:$logger_interception_version"
  testImplementation "com.squareup.okhttp3:logging-interceptor:$logger_interception_version"
  
  androidTestImplementation 'com.squareup.okhttp3:mockwebserver:3.14.0'
  
  implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
  implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
  </code></pre>
  
  <p>where version values are:</p>
  
  <pre><code>ext.logger_interception_version = '3.12.0'
  ext.retrofit_version = '2.4.0'
  </code></pre>
  
  <p>what's wrong?</p>