title: gradle: compile android junit test apk file
body: <p>Can I compile Android JUnit test apk file by using gradle script? Now my test class is:</p>
  
  <pre><code>    public class main extends ActivityInstrumentationTestCase2&lt;LoginWindow&gt; {
          public main() {
          super("com.tecomgroup.handifox", LoginWindow.class);
          }
          ...
      }
  </code></pre>
  
  <p>and gradle says that he cannot find class LoginWindow. Should I add the LoginWindow.java to dependencies {} block? Will such test work? Or may be there is another way to compile test apk file?</p>