When trying to use Ionic run android --livereload I keep getting this error message on the device
Application Error
There was a network error. (http:// 192.168.1.xxx:xxxx/)
Has anyone else had any trouble with this? It makes it really hard to work with Cordova plugins when you cant see the server logs while running the app…
When running this command with an Ionc v1 app it works flawlessly.
Thanks in advance for any help.
1 Like
I discovered the solution.
Just add this plugin
$ ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git
Thats it. No configuration or anything else was needed.
1 Like
Hi @brayhoward,
Have you ever seen this before with livereload?
Setup Live Reload
Multiple addresses available.
Please select which address to use by entering its number from the list below:
Error getting IPv4 address: TypeError: String.prototype.small called on null or
undefined (CLI v2.0.0-beta.24)
Your system information:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.4
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
OS:
Node Version: v5.5.0
@icarus_31 It seems that it’s a bug in the latest version of Ionic CLI (v2.0.0-beta.24
):
1 Like
Good to know. Thanks @iignatov for the reference