I use Eclipse for develop android apps, but when run projects see this error:
Installation failed due to invalid APK file!
For me it was a different problem causing this error:
My project was using some native JNI libraries embedded to the APK. To save some space during tests, I disabled the lib\armeabi version, leaving only the newer lib\armeabi-v7a variant. All went fine on newer devices, but testing it on the older G1 resulted in this error.