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:
parent
c3b1a5c82f
commit
e8834066de
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ android.applicationVariants.all { variant ->
|
||||||
|
|
||||||
task runApplication() {
|
task runApplication() {
|
||||||
def result = exec {
|
def result = exec {
|
||||||
executable = 'adb'
|
executable = android.getAdbExe().toString()
|
||||||
ignoreExitValue true
|
ignoreExitValue true
|
||||||
args = ['shell', 'monkey', '-p', getPackageName(), '-c', 'android.intent.category.LAUNCHER', '1']
|
args = ['shell', 'monkey', '-p', getPackageName(), '-c', 'android.intent.category.LAUNCHER', '1']
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue