[native-run] adb.exe: error: cannot bind listener: Operation not permitted
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- android, typescript
- Lĩnh vực
- mobile
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện ionic cordova emulate android -l -c với target emulator được hiển thị, rồi kiểm tra cách native-run xử lý việc binding console và lệnh adb reverse. Được xem là hoàn tất khi chế độ xuất console -c không còn thất bại với adb.exe: error: cannot bind listener: Operation not permitted, đồng thời live reload vẫn hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 139
- Fork
- 35
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ionic-team/native-run
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ionic-team/native-run#409 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
ionic-team/native-run#410 · 1 bình luận ·
-
tools not found?Đang mởandroid
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ionic-team/native-run#395 ·
-
android
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 28/100
ionic-team/native-run#390 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
ionic-team/native-run#389 ·
Tất cả issue của ionic-team/native-run
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DSpace/dspace-angular#6511 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: frontend area:byok bug severity:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Phone app shows Unknown for a remote machine whose key changedCó thể đã có người làm @janicduplessis đã nhận hôm nay. Đang mởarea: mobile priority: P3 type: bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
appandflow/stim#5006 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area - Local to Cloud Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
microsoft/vscode-mssql#23209 ·
Maintainer thường phản hồi trong vòng 1 ngày