phoneGap添加完www文件后报错:ERROR: Start Page at 'www/index.html' was not found.
来源:互联网 发布:电影视听语言分析 知乎 编辑:程序博客网 时间:2024/04/29 14:59
不少人按照phoneGap开发入门的步骤执行完后,仍然会出现错误,在输入窗口会打印出“ERROR: Start Page at 'www/index.html' was not found”的提出,而在仿真器的显示也是一样,如下图:
而入门的文章中虽然提到了问题的所在,即“下一步非常重要!将“www”文件夹拖动到 Xcode 4。你不能仅仅将“www”文件夹拖动到你的程序文件夹中,必须拖入Xcode 4中!!在我的示例中,如下所示我将它拖入到HiWorld中。”并且配了一张图来说明,如下:
虽然文档已经这样了,但还是有好多人不知道怎么办(例如我)。最终在网上查了半天,找到了解决方法,如下:
1.首先确定你使用XCode版本,如果是Xcode3,那么使用PhoneGap模板创建新项目时,会自动创建www文件夹,其中含有index.html文件。你只需要把你的文件夹和index文件拖拽到项目中,注意需要覆盖已有文件;
2.如果时Xcode4,那么就是创建一个PhoneGap项目,然后右键点击你的project,同时选择"Add files to [project name]..."。选择需要添加的www文件夹。在选择www文件夹之后会出现提示框(这里是重点),你必须选择同时"Copy items into destination group's folder"、"Create folder references for any added folders"、以及在“Add to targets”选择你需要添加的目标文件。如下图:
添加完之后,重新运行文件,错误提示就会消息,仿真器显示变为:
到了这里,大功告成。可以开始自己的phoneGap开发之旅了。
- phoneGap添加完www文件后报错:ERROR: Start Page at 'www/index.html' was not found.
- phonegap create testapp www subdir with index.html
- at blogcn :http://www.blogcn.com/User8/tojava/index.html
- Fatal error: Class 'Mage_Ad Minhtml_Helper_Data' not found in /var/www/html/app/Mage.php on line 547
- 【jsp】Fragment "/index.do?method=top" was not found at expected path
- dede搬家后,出现了D:/wamp/www/qhyzzzs/FHtpl/default/index.htm Not Found!
- www.aaa.com/index.html跳转www.aaa.com设置
- http://www.sysinternals.com/index.html
- http://www.seasar.org/cn/index.html
- http://www.jdon.com/index.html
- http://www.linuxgraphics.cn/home/index.html
- http://www.opendds.org/index.html
- http://www.hao123.com/index.html
- Error number: 20598 The row was not found at the Subscriber when applying the replicated command.
- cvs报XML error at line 1: Start tag expected, '<' not found
- configure: error: *** libmcrypt was not found
- configure: error: *** libmcrypt was not found解决方案
- configure: error: *** libmcrypt was not found
- JavaScript学习路上---JavaScript中的对象、函数和继承
- Linux下查看磁盘剩余空间和文件夹大小
- 已知一个字符串,比如asderwsde,寻找其中的一个子字符串比如sde的个数,如果没有返回0,有的话返回子字符串的个数
- POJ4044 Score Sequence 快排修改模板
- PHP连接、操纵Memcached的原理和教程
- phoneGap添加完www文件后报错:ERROR: Start Page at 'www/index.html' was not found.
- OSG教程:场景保存类Viewer
- android ListView美化-->几个比较特别的属性
- ASCII码对照表
- 邮件发送附件失败和附件名称过长不能解析的问题
- fork机制总结
- linq学习
- C# winform combobox 在绑定数据之后插入一项选择项
- 私有IP地址