离子3应用程序无法在物理Android设备上工作

问题描述:

离子3应用程序无法在物理设备上运行进行测试。离子3应用程序无法在物理Android设备上工作

After downloading the default application, using 
    `ionic start app_name sidemenu` 
    I plugged in my physical Android device for debugging. 
    When i executing the command `ionic cordova run android`, 
    I only see the flash then after few seconds a blank screen. 
    When trying to debug, i realize there is a java-script error. 

This is the error i got when debugging from the physical device(android phone) 请,建议是善意的赞赏。

您需要承载您的api,并在http调用中用域名替换路径。

或者

如果使用的是本地网络中使用本地网络IP地址,并确保你的防火墙关闭。

更换位置的主机与IP地址即192.168.1.X:53703

+0

感谢您的评论。 我在哪里可以找到我需要修改的主机IP? 我已经关闭了我的防火墙。 谢谢 – mass

+0

打开命令提示符并运行'ipconfig'并找到'IPv4地址' –

+0

我已经拥有本地IP,现在我需要从本地主机更改为我的IP地址。是否有一部分离子密码需要改变?考虑到我的IP地址? – mass