离子 4 网::ERR_CONNECTION_REFUSED(http://localhost/) [英] Ionic 4 net::ERR_CONNECTION_REFUSED(http://localhost/)
本文介绍了离子 4 网::ERR_CONNECTION_REFUSED(http://localhost/)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了一个问题,当我尝试创建基于 Ionic 4 的移动前端应用程序但网络:ERR_CONNECTION_REFUSED(
上找到了这个I'm facing a problem that when I try to create mobile Front-End application based on Ionic 4 but a net:ERR_CONNECTION_REFUSED(http://localhost/) show up when I run it with cordova on android studio emulator. This what i m using
Angular CLI: 7.1.4
Node: 8.9.4
OS: win32 x64
Ionic version 4.5.0
My config.xml
解决方案
You can try to use this
ionic capacitor run <platform> [options]
ionic capacitor run android -l --external
--external can help to use the app on external devices on the same network. just try it...
ionic capacitor run
ionic capacitor run android
ionic capacitor run android -l
ionic capacitor run ios --livereload
ionic capacitor run ios --livereload-url=http://localhost:8100
I found this on capacitor docs ionic capacitor run
这篇关于离子 4 网::ERR_CONNECTION_REFUSED(http://localhost/)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文