Ask questionsCannot bind listener: operation not permitted
[Error] Error: Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Command failed: adb -s "emulator-5554" reverse tcp:8081 tcp:8081 adb.exe: error: cannot bind listener: Operation not permitted
using android studio adv I set path to platform-tools
Starting custom debugger by executing: echo A debugger is not needed:
I would like to debug step, but i get this error, and the top bar for stopping or debugging disappears.
OS: win32 x64
Adapter node: v10.2.0 x64
vscode-chrome-debug-core: 6.7.46
Could not debug. Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Command failed: adb -s "emulator-5554" reverse tcp:8081 tcp:8081
adb.exe: error: cannot bind listener: Operation not permitted
[Info] Packager is already running.
[Info] Prewarming bundle cache. This may take a while ...
[Info] About to get: http://localhost:8081/index.bundle?platform=android
[Warning] The Bundle Cache was prewarmed.
[Info] Building and running application.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
[Error] Error: Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Command failed: adb -s "emulator-5554" reverse tcp:8081 tcp:8081
adb.exe: error: cannot bind listener: Operation not permitted
Starting custom debugger by executing: echo A debugger is not needed: "c:\Project\Harborapp"
workbench.main.js:4357 Overwriting grammar scope name to file mapping for scope source.js.
Old grammar file: file:///c%3A/Users/Origin/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/javascript/syntaxes/JavaScript.tmLanguage.json.
New grammar file: file:///c%3A/Users/Origin/.vscode/extensions/mgmcdermott.vscode-language-babel-0.0.22/grammars/Babel-Language.json
register @ workbench.main.js:4357
workbench.main.js:3313 [Extension Host] debugger listening on port 36911
workbench.main.js:238 [Extension Host] (node:2692) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] (node:2692) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Answer questions
OriginLive
Hello, changing the platform tools didn't help, however as mentioned, i've switched the emulator api to version 28 and everything works as intended. Thanks! I guess we'll have to wait for 29 to be stable.
Related questions