Use getAdbExe() to retrieve adb path.

This will prevent adb related issues such as `a problem occurred starting process 'command 'adb''` when the adb executable is not found in the path.
This commit is contained in:
Karn Saheb 2017-05-26 15:37:21 -04:00 committed by Erwan Croze
parent c3b1a5c82f
commit e8834066de

View file

@ -184,8 +184,8 @@ android.applicationVariants.all { variant ->
task runApplication() {
def result = exec {
executable = 'adb'
executable = android.getAdbExe().toString()
ignoreExitValue true
args = ['shell', 'monkey', '-p', getPackageName(), '-c', 'android.intent.category.LAUNCHER', '1']
}
}
}