我的系统信息:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.1
Node Version: v6.9.0
Xcode version: Not installed
这是一个Ionic 2应用程序,直到最近都运行得很好。升级到离子框架Rc3后,在构建过程中抛出错误
-Application Error
connection to the server was unsuccessful. File://android_asset/www/index.html
已尝试重新安装android平台和所有软件。
但是,即使是一个基本的应用程序,似乎也不起作用。
Config.xml文件包含
<description>An Ionic 2 Starter app.</description>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
.
我已经尝试了ion2的入门模板,在2台不同的linux机器和windows机器上也是一样的结果。有趣的是,它在android模拟器中运行良好,但在移动设备上却失败了。
任何帮助都将不胜感激。
发布于 2017-01-09 06:57:26
好的,我已经设法让它工作了,将ionic-apps-scripts降级到0.0.47。添加cordova-device-plugin,最后为了避免超时问题,在config.xml的preferences部分添加下面这一行:
<preference name="loadUrlTimeoutValue" value="700000" />
https://stackoverflow.com/questions/41440866
复制相似问题