简体   繁体   English

设备上的离子科尔多瓦 livereload 不再工作

[英]Ionic cordova livereload on device doesn't work anymore

Until today when I lauched直到今天我开始

    ionic cordova run android -l

my app was running in livereload mode on real android device.我的应用程序在真正的 android 设备上以 livereload 模式运行。 Suddenly doesn't work anymore.突然不行了。 I mean the app runs on device but doesn't listen anymore on file changes, so I cannot see the live changes on device, I must rebuild and rerun the app.我的意思是应用程序在设备上运行但不再监听文件更改,所以我看不到设备上的实时更改,我必须重建并重新运行应用程序。

My cli version is 5.4.7.我的 cli 版本是 5.4.7。

Any help is appreciated.任何帮助表示赞赏。

确保您在 PC 和移动设备中连接到同一网络

The solution was updating ionic and cordova frameworks.解决方案是更新 ionic 和cordova 框架。 So I lauched所以我发起了

    npm update
    npm update -g ionic
    npm update -g cordova

and now the livereload is working as usual.现在 livereload 像往常一样工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM