ionic-team / ionic-team/ionic-cli

ionic cordova run android --livereload does not work with a default project

未關閉
#4,168 9 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
triage
主要語言
TypeScript
星號
2k
分支
682
PR 合併指標
30 天內沒有已合併 PR

描述

I have start a project with this:
```
nvm install 10.16.3
nvm use 10.16.3
npm install -g ionic
npm install -g cordova
ionic start myApp tabs --cordova
cd myApp
ionic cordova run android --livereload
```

Without `--livereload` the app works:

![2019-09-30_10h07_50](https://user-images.githubusercontent.com/3032555/65860249-2f3bd680-e36a-11e9-863b-16935b86db66.png)

But with `--livereload` I have just a white screen and this:
```
BUILD SUCCESSFUL in 2s
42 actionable tasks: 42 up-to-date
Built the following apk(s):
C:\test\myApp\platforms\android\app\build\outputs\apk\debug\app-debug.apk
> native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk
[native-run] No hardware devices found, attempting emulator...
[native-run] Selected emulator emulator-5554
[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
```
![image](https://user-images.githubusercontent.com/3032555/65860295-4975b480-e36a-11e9-8658-421e7983c288.png)

I'm using VScode with Git Bash on Windows 10.

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the default project with `ionic cordova run android --livereload` on Windows 10 using Git Bash, then compare it with the successful command without `--livereload`. Trace the CLI entry point that invokes `native-run` and inspect the emulator's white-screen behavior; done means the default Android app launches with live reload enabled.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, typescript
領域
cli, mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。