Installing an update for Android - "Application not installed" error

I recently made changes to an existing application, and we would like to make changes to our users as a downloadable update.

The application recognizes that there is an update and downloads the file. After downloading, we can click the apk file and it says that it will replace the existing application. We click OK, then click "Install" and we get a message, simply saying "The application is not installed."

We would like this to be a fairly smooth transition to a new update, since we have ~ 1000 users who will need to update this product for our company.

Both applications (old version and new version) are signed by APK with the same certificate. If each user uninstalls manually, then installing a new version is not an option, since we gave them limited access to their phone features.

+4
source share
1 answer

It's hard to be final without looking at the logs and / or manifest files, but some quick things to look for:

In the AndroidManifest.xml file, make sure that:

  • The package name in each version will be the same.
  • versionCode is an integer that is greater than the previous version
  • Version name is different for each version.

    <manifest xmlns: android = "http://schemas.android.com/apk/res/android" package = "XXXXX" Android: VersionCode = "2" android: versionName = "2.1.0 Fred">

+3
source

Source: https://habr.com/ru/post/1384195/


All Articles