title: AndroidManifest in androidTest directory being ignored
body: <p>I'm trying to test using the following directory structure (which was setup by Android Studio):</p>
  
  <p><img src="https://i.stack.imgur.com/T9wWH.png" alt="test directory structure"></p>
  
  <p>I can run <em>some</em> tests just fine, and even the <code>AllTests.java</code> runs fine without the <code>AndroidManifest.xml</code> file even being there. The thing is, for one of my new tests, I need the <code>android.permission.INTERNET</code> permission. So, I added the following to the <code>AndroidManifest.xml</code> file located within the <code>androidTest</code> directory:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
            package="com.example.core"
            android:versionCode="2"
            android:versionName="2.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Unfortunately, this doesn't work. I'm still getting the following error when I run one of my tests:</p>
  
  <blockquote>
    <p>E/RestAPIRequestTest﹕ Permission denied (missing INTERNET permission?)</p>
  </blockquote>
  
  <p>I've tried setting the <code>package</code> to be <code>com.example.core.test</code> in my <code>AndroidManifest.xml</code> file (since that is what it shows up as in my Settings->Apps list), but with no joy.</p>
  
  <p>I'm thinking it's not even recognizing the <code>AndroidManifest.xml</code> file, since the version number doesn't show in the Settings for the test app, either.</p>
  
  <p>How can I inject the correct permissions for my test project?</p>