title: Installation failed with message INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package signatures do not match the previously installed version
body: <p>I want to run my application in phone but I get following message:</p>
  <p>Installation failed with message:</p>
  <blockquote>
  <p>INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package signatures do not match
  the previously installed version; ignoring!.</p>
  <p>It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
  WARNING: Uninstalling will remove the application data!
  Do you want to uninstall the existing application?</p>
  </blockquote>
  <p>In my phone I have installed previous version of app from google play. I know that uninstalling old version of app from my phone can fix the problem but I don't want to do this because then I might lose all app specific data.</p>
  <p>What I tried:</p>
  <ul>
  <li>generating signed version of app using the same keystore.jks like previously</li>
  <li>changing versionCode and versionName in build.grandle file and then generating new version of app</li>
  </ul>
  <p>And still I have the same problem. What should I do to update my app without losing data?</p>