ionic-team / ionic-team/ionic-cli
native-run says "No hardware found"
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 682
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Description:**
App is running on Device, but native-run says "No hardware found". A android device is connected though.
**Steps to Reproduce:**
A android device is connected, however while running the below command C:\Users\Shyam\AndroidStudioProjects\TGCFinal>ionic cordova run android -l -c --native-run
**Output:**
native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk --connect --forward 8100:8100
[native-run] No hardare devices found, attempting emulator...
[native-run] Selected emulator BH906DYT17
[native-run] Forwarded device port 8100 to host port 8100
[native-run] Installing platforms\android\app\build\outputs\apk\debug\app-debug.apk...
[native-run] Starting application activity io.ionic.starter/io.ionic.starter.MainActivity...
[native-run] Run Successful
[native-run] Waiting for app to close...
**My `ionic info`:**
_ _
(_) ___ _ __ (_) ___
| |/ _ \| '_ \| |/ __|
| | (_) | | | | | (__
|_|\___/|_| |_|_|\___| CLI 5.0.1
貢獻指南
研究方向
Start by reproducing the reported `ionic cordova run android -l -c --native-run` command with a connected Android device and inspect native-run's hardware detection entry point. Done means the connected device is detected and used instead of falling back to the emulator, while preserving the successful run behavior.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, typescript
- 領域
- cli, mobile-dev
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100