I use Eclipse for develop android apps, but when run projects see this error:
Installation failed due to invalid APK file!
Totally agree with @melvkim answer. One thing to add.
Also please make sure that you do not use forbidden characters in your package name. E.g.:
Wrong package names
com.domain.365days
- you cant start any part of package name with a digit (...)com.domain._365days
- (...) nor a special characterCorrect package names
com.domain.days365
- start all parts of your package name with a letterPlease see your logcat very carefully. Eclipse IDE might not show any error or warning, but logcat will.
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.
Check your Platform version on Phone or Emulator (depend where you're testing ) must be same or greater then the version you mentioned in your AndroidManifest.xml.
In my case, the issue was due to mis-match in the Android manifest file and Project Build Target API Level
I changed from targetSdkVersion from 19 to 21.
Also, by changing the target sdk version through the stepsgiven below