From e8834066de4ddd1723de1f030d2017a5774f5bfa Mon Sep 17 00:00:00 2001 From: Karn Saheb Date: Fri, 26 May 2017 15:37:21 -0400 Subject: [PATCH] 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. --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index e69352bdd..bc9eaae88 100644 --- a/build.gradle +++ b/build.gradle @@ -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'] } -} \ No newline at end of file +}