title: Why is library module android.support.test not visible in add dependency
body: <p>I am adding Espresso to my project in Android Studio. I have installed the Support Repository and in fact have already been using pieces of it. Then I added these dependencies to <code>app/build.gradle</code> per the install instructions:</p>
  
  <pre><code>androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
  androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
  </code></pre>
  
  <p>in writing my test, auto complete recognizes the existence of the artifacts. But when I run I get this error:</p>
  
  <pre><code>error: package android.support.test does not exist
  error: package org.junit does not exist
  </code></pre>
  
  <p>and a number of other subpackages to these two.</p>
  
  <p>So I removed the two above lines from build.gradle and attempted to add then in the GUI project structure/modules/dependencies</p>
  
  <p>neither 'com.android.support.test.espresso:espresso-core:2.0' nor 'com.android.support.test:testing-support-lib:0.1' appear as options to choose from.  However, in my file system there is <code>&lt;sdk&gt;\extras\android\m2repository\com\android\support\test\espresso\espresso-core\2.0\</code> with the full complement of files including <code>espresso-core-2.0.aar</code> which I am able to open and navigate within it via winzip.  In the file system it looks no different than the other libraries installed via SDK Manager with Support Repository.</p>
  
  <p>Why doesn't android studio recognize this library?</p>
  
  <p>Your help is greatly appreciated, no one else that I can find seems to have run into this problem.  This is the closest I could find: <a href="https://stackoverflow.com/questions/28796114/why-do-packages-from-library-module-does-not-exist-upon-compilation-even-when-a">Why do packages from library module does not exist upon compilation, even when Android Studio shows no errors in code?</a></p>
  
  <p>I have tried reinstalling Support Repository twice.</p>