title: How to set a custom drawable directory for unit testing in Android Studio
body: <p>In Android Studio I put some drawables that my test need to run in the res folder of the androidTest folder like this:</p>
  
  <p>app/src/androidTest/res/drawable/image.png</p>
  
  <p>I can see the new added drawables marked as <strong>drawable/image.png (androidTest)</strong> inside Android Studio. But when I try to access the drawable using R.drawable.image can't be found.</p>
  
  <pre><code> Bitmap bm = BitmapFactory.decodeResource(getInstrumentation().getContext().getResources(), R.drawable.image);
  </code></pre>
  
  <p>Is like the R.drawable of the test its not generated. </p>
  
  <p>How can I access this drawable or do to be generated in R.drawable?</p>