eclipse - Changes to HTML files not showing on built phonegap 3.0 app -


so have phonegap 3.0 app (project folder), , it's project (project/platforms/android) on eclipse.

the problem when change project/www/index.html , , tell eclipse run project, changes don't appear on device.

i noticed eclipse saying application deployed. no need reinstall. tried adding space in .java file eclipse notice change in project , rebuild it. worked, installing ringto.apk... success! showed on log, still changes index.html didn't show @ device...

changes made files inside project/www/ not automatically copied project (in case project/platforms/android/assets/www/). have run following command iteratively copy changes platform specific projects , build them. open command prompt , navigate root of project (in case project/). or can right click on project/ folder while pressing shift key. run following command:

cordova build 

you can optionally limit scope of each build specific platforms:

cordova build android 

alternatively, can run following commands:

cordova prepare android cordova compile android 

in case, once run prepare, can use eclipse adt installed alternative modify , compile "platform-specific code" cordova generates within platforms/android.

source - cordova docs

so, when have made slight modification in .java file (which android platform specific file) , tried rebuild within eclipse, trying rebuild same project without actual modifications.

another alternative copy files within project/www/ project/platforms/android/assets/www/ hand , build within eclipse, would, of course, unnecessary pain.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -