I am developing for Android and use Eclipse to create an apk that also has a .so file with C++ code in it. My problem is that when I only change the C++ code and recompile that outside of Eclipse, Eclipse doesn’t really always see that it’s changed and I have to clean the project and rebuild it before I can reliably start it. This behaviour has cost me lots of time because Eclipse is not using the new .so file.
Is there a way to force Eclipse to always rebuild the project before its being run ?
I’m not sure how familiar you are with ant, but if you are compiling your c++ files through command line, one thought is to create an ant build script that will:
Then you can be sure the generated apk is always built using the latest compiled code.