ionic-team / ionic-team/ionic-cli

ionic cordova run android doesn't perform with livereload: cordova_not_available

オープン
#4,407 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る
triage
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。