Merge pull request #354 from realm/sk-adb-fix
Get correct path to adb from Android Studio
This commit is contained in:
commit
858380b86e
|
@ -17,7 +17,8 @@ allprojects {
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
task forwardDebugPort(type: Exec) {
|
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
|
ignoreExitValue true
|
||||||
doLast {
|
doLast {
|
||||||
if (execResult.getExitValue() != 0) {
|
if (execResult.getExitValue() != 0) {
|
||||||
|
|
Loading…
Reference in New Issue