How to build a release test apk for Android with Gradle? : <p>I know, with the Gradle command <code>assembleAndroidTest</code> I can build a test APK. 
But I can use this test APK only for debug builds of my app, right? If I use it with a release build, I get error messages like <code>"[SDR.handleImages] Unable to find test for com.xxx.xxx (packagename)"</code></p>

<p>How can I build a test APK in release mode with Gradle?</p>
