PhoneGap Doesn't see assets/www/index.html

与世无争的帅哥 提交于 2019-12-13 03:37:43

问题


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

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.

Zipped Project Files


Edit: 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.


回答1:


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.



来源:https://stackoverflow.com/questions/10740555/phonegap-doesnt-see-assets-www-index-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!