0

One developer creates 1.0 version debug apk on his machine . Another developer creates 1.1 version debug apk on his machine. Both use the same android device to test applications. If 1.0 version is installed. Can it be updated to 1.1 on the same device. Right now , we get error , app install failed. The logs show this error: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package signatures do not match previously installed version; ignoring!

We tried to create both the versions on one machine and the update worked on the android device

kirtipriya
  • 148
  • 3
  • 8

2 Answers2

1

Yes, it can be updated. The machine doesn't matter. what matters is KeyStore Copy the Keystore from the machine where version 1.0 was created and then copy it to the other machine. and that's it.

Now you can update your App.

How to find the Keystore?

Look at this thread

Sahil Manchanda
  • 9,812
  • 4
  • 39
  • 89
1

You can create the keystore for debug builds and use it to make APK files on a different machine.

  1. Create new keystore debug.keystore with alias android. Both passwords for keystore and the alias should be android

  2. In build.gradle for the app module (or how it is called in your project), define the signing configs, so the IDE will know how to sign debug build.

  3. Use the same debug.keystore file on all developers' machines.

The example:

    android {

        signingConfigs {
            debug {
                storeFile PATH_TO_THE_DEBUG_KEYSTORE
                storePassword "android"
                keyAlias "android"
                keyPassword "android"
            }
            ...
        }
        ...
    }

P.S. In fact, the names for debug.keystore, alias and passwords can be different from the suggested values. It is just simple to remember.

RelaxedSoul
  • 644
  • 4
  • 10