ionic-team / ionic-team/ionic-cli
ionic cordova run android doesn't perform with livereload: cordova_not_available
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 682
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Description:**
I'm running the command `ionic cordova run android --emulator --livereload` to emulate the application on an Android emulator, the native functions are stopping and have the following error message on the console `cordova_not_available`. For example, when I try to open the camera
But when I remove the command `--livereload` , the native functions return to working normally.
**My `ionic info`:**
```
Ionic:
Ionic CLI : 5.4.15 (/usr/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 5.0.0
@angular-devkit/build-angular : 0.901.1
@angular-devkit/schematics : 8.3.25
@angular/cli : 9.1.1
@ionic/angular-toolkit : 2.1.2
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0, browser 6.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 11 other plugins)
Utility:
cordova-res : not installed
native-run (update available: 1.0.0) : 0.3.0
System:
Android SDK Tools : 26.1.1 (/home/iann/Android/Sdk)
NodeJS : v12.14.1 (/home/iann/.nvm/versions/node/v12.14.1/bin/node)
npm : 6.13.6
OS : Linux 4.15
```
**Other Information:**
貢獻指南
研究方向
Start by reproducing `ionic cordova run android --emulator --livereload` and compare it with the same command without `--livereload`, using the reported `cordova_not_available` error and camera behavior as the baseline. Trace the CLI's livereload and Android/Cordova run path; done means native functions work while livereload is enabled.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, node.js, typescript
- 領域
- cli, mobile-dev
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100