Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse not compiling new Android code

Tags:

android

For some reason, after I build my Android project in Eclipse, it is not giving me any errors, but none of my updates are being compiled.

I've tried both running my app in the emulator, and installing the apk on my phone. It still only compiles the old version of my app, not the new one. I've tried deleting the apk in the bin folder manually before recompiling it, and cleaning the project.

The previous thing that occurred was, my certificate expired, so I deleted the old certificate file.

I do not see any errors in the error log or the console. I'm still pretty new to all this.

like image 243
Dave Avatar asked May 15 '26 04:05

Dave


1 Answers

This has been driving me nuts recently. I recently migrated from XP to Windows 7, and thought it was a quirk of Eclipse running in XP, but it is still happening, i.e. any changes made, I had to compile twice to get the current version.

For some reason, the solution for me is to make sure the changes are saved before compiling. If you don't save, and do so on the Dialog that pops up when you compile/run, you have to go again. Don't know why this is, maybe I am missing something, it worked fine a few months ago.

like image 150
Douglas Brett Avatar answered May 17 '26 18:05

Douglas Brett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!