问题
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