Credits may due to the respective authors! thank you.

Knowledge base only.

add the following lines to root "gradle.properies" file

systemProp.http.proxyHost=wwwgate0.mot.com
systemProp.http.proxyPort=1080
org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_111
android.enableBuildCache=false
org.gradle.jvmargs=-Xmx1536M

https://developer.android.com/studio/test/command-line.html
https://innovation.avg.com/2016/06/15/raspberry-pi-for-android-test-automation/

adb uninstall com.zebra.scannercontrol.app
adb uninstall com.zebra.scannercontrol.app.test
./gradlew clean connectedAndroidTest


**/androidTest-results/connected/*.xml

**/*.apk