I know this question has been asked to death here, but I am unable to find the solution in all of the offered answers and its driving me crazy.
I have an app which I have set up to download updates from my own server. This update installs fine on some types of phones but fails on others (namely the Droid Incredible 2).
The error it alerts when I try to install an update on SOME phones is:
“Parse Error: There is a problem parsing the package.”
The logcat shows:
INFO/ActivityManager(1482): Starting activity: Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/download/application.apk typ=application/vnd.android.package-archive cmp=com.android.packageinstaller/.PackageInstallerActivity } from pid 4620
WARN/PackageParser(2528): Skipping dir: /mnt/sdcard/download/application.apk
WARN/PackageInstaller(2528): Parse error when parsing manifest. Discontinuing installation
- I am signing and exporting this app with a valid key, using the Eclipse tool, with MinSDK version 3.
- I am making certain that the version code in the downloaded app is higher than that of the existing app.
- I am making sure that the .apk filename is the same in both apps.
What else could I possibly be doing wrong?
edit: I uploaded this app to the Android Market…when I try to install on the troubled phones, I get an alert saying “Package file was signed incorrectly”. On the other phones, it downloads and installs just fine.
The problem was that I was updating an app that was originally installed through adb, not through the market.