diff --git a/react-native/android/publish_android_template b/react-native/android/publish_android_template index 0fc1ef6b..79823879 100644 --- a/react-native/android/publish_android_template +++ b/react-native/android/publish_android_template @@ -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) {