Merge pull request #354 from realm/sk-adb-fix

Get correct path to adb from Android Studio
This commit is contained in:
Scott Kyle 2016-03-29 11:30:55 -07:00
commit 858380b86e
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ allprojects {
apply plugin: 'com.android.library'
task forwardDebugPort(type: Exec) {
commandLine 'adb', 'forward', 'tcp:8082', 'tcp:8082'
def adb = android.getAdbExe()?.toString() ?: 'false'
commandLine adb, 'forward', 'tcp:8082', 'tcp:8082'
ignoreExitValue true
doLast {
if (execResult.getExitValue() != 0) {