Ric*_*ier 11 cordova livereload ionic-framework ionic
使用--live-reload参数时,我无法在手机上看到我的离子应用程序.
我使用的是Windows 8.1和连接的Nexus 5 Android设备.该应用程序是使用创建的示例sidemenu应用程序ionic start demo sidemenu.
当我运行时ionic run --live-reload,我首先通过可能的IP地址列表呈现:
Multiple addresses available.
Please select which address to use by entering its number from the list below:
Note that the emulator/device must be able to access the given IP address
1) 192.168.0.109 (Wi-Fi)
2) 192.168.159.1 (VMware Network Adapter VMnet1)
3) 192.168.174.1 (VMware Network Adapter VMnet8)
4) 192.168.56.1 (VirtualBox Host-Only Network)
Run Code Online (Sandbox Code Playgroud)
我选择选项1 - 这是我的开发PC的IP地址,即托管离子服务器.
Ionic确认此选择,并确认它正在为端口提供服务,如下所示:
Selected address: 192.168.0.109
Running live reload server: http://192.168.0.109:35729
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Running dev server: http://192.168.0.109:8100
Run Code Online (Sandbox Code Playgroud)
我确认它是通过在我的电脑上打开Chrome并导航到http://192.168.0.109:8100来为该页面提供服务
当应用程序在Android设备上运行时,它首先显示启动画面,然后显示带有错误的webview:
Web page not available
The Web page at http://192.168.0.109:8100/ could not be loaded as:
net::ERR_ADDRESS_UNREACHABLE
Run Code Online (Sandbox Code Playgroud)
这也在Ionic论坛上报道:
据我所知,我在我的Windows机器上打开了TCP端口35729和8100(使用控制面板 - 防火墙设置).
我必须配置什么才能在设备上看到我的Ionic应用程序?
| 归档时间: |
|
| 查看次数: |
12281 次 |
| 最近记录: |