[英]Quasar Error on Android: webpage at ip:port could not be loaded because net::ERR_ADDRESS_UNREACHABLE
I am learning quasar and I created a new project using quasar init name
. 我正在学习类星体,并使用quasar init name
创建了一个新项目。 I then move into the new project root directory and ran quasar mode -a cordova
to add a cordova project. 然后,我进入新的项目根目录并运行quasar mode -a cordova
以添加cordova项目。 I cd to src-cordova and run cordova platform add android
and cordova requirements
. 我cd到src-cordova并运行cordova platform add android
和cordova requirements
。 No errors on the requirements check. 需求检查没有错误。 I go back to the project root and run quasar dev -m cordova -T android
. 我回到项目根目录并运行quasar dev -m cordova -T android
。 Its results in a empty page that says "webpage at ip:port could not be loaded because net::ERR_ADDRESS_UNREACHABLE". 结果是一个空页面,显示“由于net :: ERR_ADDRESS_UNREACHABLE无法加载ip:port上的网页”。 Running quasar dev
works fine and quasar dev -m electron
works as well. 运行quasar dev
可以正常工作, quasar dev -m electron
也可以。
When I install it on ios with quasar dev -m cordova -T ios
I get a blank page. 当我使用quasar dev -m cordova -T ios
将其安装在ios上时,我得到一个空白页。 Also if I cd
to the src-cordova directory I can manually install the starter cordova app on ios or android without issue. 另外,如果我cd
到src-cordova目录,则可以在ios或android上手动安装Starter Cordova应用程序,而不会出现问题。 Why am I getting this error on android and a blank page on ios with just a default project? 为什么我在android上出现此错误,而在ios中只有默认项目的情况下出现空白页?
Quasar version 0.17.18 Quasar版本0.17.18
Node version 8.12.0 节点版本8.12.0
Cordova version 8.0.0 Cordova版本8.0.0
NPM version 6.4.1 NPM版本6.4.1
macOS High Sierra 10.13.6 macOS High Sierra 10.13.6
Turns out my most recent comment was correct. 原来我最近的评论是正确的。 It is a requirement for the dev computer to be on the same network as the mobile device you wand to install the app on using quasar dev -m cordova -T android/ios
. 使用quasar dev -m cordova -T android/ios
将开发计算机与您使用的移动设备安装在同一网络上是quasar dev -m cordova -T android/ios
。 Once I got that set up and there was communication between my computer and the mobile devices, this problem went away. 一旦完成设置,并且计算机与移动设备之间就可以通信了,那么这个问题就消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.