[native-run] adb.exe: error: cannot bind listener: Operation not permitted
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, typescript
- 领域
- mobile
调研方向
首先,使用所示的模拟器目标重现 ionic cordova emulate android -l -c,并检查 native-run 对控制台绑定和 adb reverse 命令的处理。完成的标准是 -c 控制台输出模式不再因 adb.exe: error: cannot bind listener: Operation not permitted 失败,同时 live reload 仍能正常工作。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 141
- 派生
- 35
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ionic-team/native-run 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
ionic-team/native-run#409 ·
-
难度 3/5 1-2 天 新手友好度 66/100
ionic-team/native-run#410 · 1 条评论 ·
-
tools not found?未关闭android
难度 4/5 3-5 天 新手友好度 25/100
ionic-team/native-run#395 ·
-
android
难度 3/5 1-2 天 新手友好度 28/100
ionic-team/native-run#390 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 38/100
ionic-team/native-run#389 ·
查看 ionic-team/native-run 的全部 Issue
相似的 Issue
-
[Text] Add Reading Time & Word Count Estimator for Reflection Notes in src/lib/text/reading-time.ts未关闭area:core beginner-friendly community contributions-welcome difficulty:easy enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timing未关闭e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
devswha/herdr-web-ui#2884 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
b:minor bug
难度 2/5 1-3 小时 新手友好度 78/100
software-mansion/argent#1771 ·
维护者通常 1 天内回复