PhoneGap看不到assets / www / index.html [英] PhoneGap Doesn't see assets/www/index.html

查看:175
本文介绍了PhoneGap看不到assets / www / index.html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用DreamWeaver CS6 PhoneGap扩展来构建一个应用程序。

I'm using the DreamWeaver CS6 PhoneGap extension to build an app.

如果我把索引放在网站的底部, >

It works fine if I put the index in the base of the site e.g.

Main Folder
  -index.html

但是当我使用一个assets / www文件结构,像我在网上看到过很多次,它不工作。它只是在主文件夹中生成一个默认的index.html。当前文件结构如下...

But When I use an assets/www file structure like I have seen many times around the web it doesn't work. It just generates a default index.html in the Main Folder. Current file structure is as follows...

Main Folder
  -assets
    -www
      -index.html
  -res
  -src

使用更新的结构重建应用程序我收到以下消息。

When I click on Rebuild Application with the updated structure I get the following message.

压缩的项目文件

编辑:任何人都有DW CS6的问题。我有很多问题由未更新的文件更新的文件。

FOR ANYONE HAVING PROBLEMS WITH DW CS6. I HAD MANY PROBLEMS CAUSED BY THE FILE NOT BEING UPDATED WHEN REBUILD. I HAD TO DELETE THE PROJECT ON PHONEGAP.COM RESTART DW AND REBUILD NEW.

推荐答案

我从来没有尝试过做任何事情Phonegap相关的DW,我做的一切在终端和BBEdit,所以我的里程和你的可能不同...但是。下面的图片是一个Android / Phonegap应用程序的正确结构。 (忽略 bin :that和 gen 是由ant生成应用程序。)你试过去命令行,至少用于建筑?有一个不错的小教程

I've never tried to do anything Phonegap-related in DW, and I do everything in the Terminal and BBEdit, so my mileage and yours may vary... But. The image below is the correct structure for an Android/Phonegap app. (Ignore bin: that and gen are generated by ant while building the app.) Have you tried going the command line, at least for building? There's a nice little tutorial.

这篇关于PhoneGap看不到assets / www / index.html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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