ionic-team / ionic-team/native-run

[native-run] adb.exe: error: cannot bind listener: Operation not permitted

Open
#39 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
137
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Hi,
This error occurs while using livereload and console binding command (-l and -c flags), it seems that adb.exe refuses to bind to listener for reading console outputs.
This could be related to the update made by google.

command used : ```ionic cordova emulate android -l -c```

Edit: problem comes from -c flag to read console output, live reload (-l flag) works.
Output :
```
D:\Work\benzaiten\mobile-app\benzaiten>ionic cordova emulate android --target=Nexus_5X_API_29 -l -c
> ng.cmd run app:ionic-cordova-serve --host=localhost --port=8100 --platform=android
[INFO] Waiting for connectivity with ng...

[INFO] Development server running!

Local: http://localhost:8100

Use Ctrl+C to quit this process

> cordova.cmd build android --target Nexus_5X_API_29
> native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk --target Nexus_5X_API_29 --connect --forward 8100:8100
[ng] Date: 2019-06-06T17:39:14.280Z
[ng] Hash: ad415a1f46486ce1f9fa
[ng] Time: 18198ms
[ng] chunk {common} common.js, common.js.map (common) 20.2 kB [rendered]
[ng] chunk {cordova} cordova.js, cordova.js.map (cordova) 62.4 kB [entry] [rendered]
[ng] chunk {es2015-polyfills} es2015-polyfills.js, es2015-polyfills.js.map (es2015-polyfills) 285 kB [initial] [rendered]
[ng] chunk {home-home-module} home-home-module.js, home-home-module.js.map (home-home-module) 17.3 kB [rendered]
[ng] chunk {main} main.js, main.js.map (main) 31.9 kB [initial] [rendered]
[ng] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 237 kB [initial] [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 8.79 kB [entry] [rendered]
[ng] chunk {styles} styles.js, styles.js.map (styles) 88 kB [initial] [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 4.37 MB [initial] [rendered]
[INFO] ... and 173 additional chunks
[ng] i 「wdm」: Compiled successfully.
[native-run] Selected emulator emulator-5554
[native-run] Error: Command failed: C:\Users\laurent\AppData\Local\Android\Sdk\platform-tools/adb -s emulator-5554 reverse tcp:8100 tcp:8100
[native-run] adb.exe: error: cannot bind listener: Operation not permitted
[native-run]
[native-run] at ChildProcess.exithandler (child_process.js:297:12)
[native-run] at ChildProcess.emit (events.js:197:13)
[native-run] at maybeClose (internal/child_process.js:984:16)
[native-run] at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
[ERROR] An error occurred while running subprocess native-run.

native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-d... exited with exit code 1.

Re-running this command with the --verbose flag may provide more information.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.