Java – is there a way to force eclipse to automatically clean up every run?

I'm developing and using eclipse to create an APK for Android, which also has an APK with C code So file My problem is that when I only change C code and recompile outside eclipse, eclipse does not always see that it has been changed. I have to clean up the project and rebuild it to start it reliably This behavior took me a lot of time because eclipse didn't use the new So file

Is there any way to force eclipse to always rebuild the project before running?

Solution

I'm not sure how familiar you are with ant, but if you compile your C file from the command line, we think of creating an ant build script, which will:

>Recompile your C files > clean up and build your APK > install APK on your device

You can then ensure that the generated APK is always built with the latest compiled code

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>