title: Android Studio make my test module depend of application module
body: <p>I want to make in Android Studio my test module to be dependent of application module, but can not achieve this, have mistake</p>
  
  <pre><code>Error:Dependency AndroidApp:app:unspecified on project TestsRobotium resolves to an APK archive which is not supported as a compilation dependency. File: D:\android\MEWE\AndroidApp\app\build\apk\MeWe.apk
  </code></pre>
  
  <p>In my test.gradle I added provided project(':app') in dependency tag (it is done by Android studio automatically)</p>
  
  <p>How would I resolve this? I need dependency on src, res folders of my main app and need to know R file</p>