应用程序错误是目录(文件:///#android_asset/www/index.html) [英] Application Error Is a directory (file:///#android_asset/www/index.html)

查看:1247
本文介绍了应用程序错误是目录(文件:///#android_asset/www/index.html)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用PhoneGap的开发在Android上的应用程序,当我在我的手机测试它,我得到这个错误应用程序错误是目录(文件:///#android_asset / WWW /索引。 HTML) 我只得到这个错误时,我没有在我的手机的互联网连接。

I'm using phonegap to develop an application on android, when I test it on my phone I get this error Application Error Is a directory (file:///#android_asset/www/index.html) I only get this error when I don't have internet connection on my phone.

有什么建议?

推荐答案

我找到了答案在这里: <一href="http://dev.wavemaker.com/wiki/bin/wmdoc_6.5/PhoneGap?xpage=print#HTheconnectiontotheserverwasunsucessful28file3A2F2F2Fandroidasset2Fwww2Findexhtml29">http://dev.wavemaker.com/wiki/bin/wmdoc_6.5/PhoneGap?xpage=print#HTheconnectiontotheserverwasunsucessful28file3A2F2F2Fandroidasset2Fwww2Findexhtml29

I found the answer here: http://dev.wavemaker.com/wiki/bin/wmdoc_6.5/PhoneGap?xpage=print#HTheconnectiontotheserverwasunsucessful28file3A2F2F2Fandroidasset2Fwww2Findexhtml29

6.1到服务器的连接是不成功的(文件:///android_asset/www/index.html)

6.1 The connection to the server was unsucessful (file:///android_asset/www/index.html)

其中:当启动一个Android设备上的应用程序

WHERE: When launching the application on an Android device.

任何你在你的index.html文件放置请求远程   资源将导致抛出Android设备的上述错误,   和你的应用程序将死。所述Weinre调试器是一种常见的   造成这个错误的。

Anything you place within your index.html file that requests a remote resource will cause the above error to be thrown for android devices, and your application will then die. The Weinre debugger is a common cause of this error.

解决方案:将远​​程资源加载出来的index.html和   为您的应用程序在那里将悄悄地失败。

Solution: Move the loading of remote resources out of index.html and into your application where it will fail quietly.

这篇关于应用程序错误是目录(文件:///#android_asset/www/index.html)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆