title: How can I create my APK locally which has signature compatible with my app on Playstore (which uses Google's app signing)?
body: <p>I have Google App signing enabled for my app.
  I created an APK and signed it using my keystore file and uploaded it to devConsole. Google then signed the APK again using Google's App signing which it then sent to users on Playstore.</p>
  
  <ol>
  <li>I downloaded and installed the APK from Playstore (which contains Google's App signing signature).</li>
  <li>I downloaded App signing certificate from devConsole -> App signing -> App signing certificate</li>
  <li>I added the certificate to my current keystore file using below command: </li>
  </ol>
  
  <blockquote>
    <p>keytool -importcert -file [app_signing_certificate] -keystore
    [current_keystore_file]</p>
  </blockquote>
  
  <ol start="4">
  <li>I created release APK using the new keystore which got generated in step 3</li>
  <li>Now when I try to upgrade this new APK over the APK which I installed from Playstore, I get an error.</li>
  </ol>
  
  <blockquote>
    <p>Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package
    xyz signatures do not match previously installed
    version; ignoring!]</p>
  </blockquote>
  
  <p>I want to know what needs to be done to create an APK locally which matches the signature of the one downloaded from Playstore.</p>