title: Cannot update debug APK on device
body: <p>I face a problem when trying to install debug type .apk file over another one on my device. I have an app with <code>versionCode=n</code> already installed. When I try to install the same app with <code>versionCode=n+1</code> i get an error.</p>
  
  <p>Here is the message after i call the command <code>adb install xxx.apk</code></p>
  
  <blockquote>
    <p>failed to install xxx.apk: Failure
    [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package xxx signatures do not
    match the previously installed version; ignoring!]</p>
  </blockquote>
  
  <p>All my .apk files are signed with Android debug keystore. It is confirmed by command <code>jarsigner -verify -verbose -certs xxx.apk</code> that gives me next message:</p>
  
  <blockquote>
    <ul>
    <li>Signed by "C=US, O=Android, CN=Android Debug"
    Digest algorithm: SHA-256
    Signature algorithm: SHA256withRSA, 2048-bit key</li>
    </ul>
    
    <p>jar verified.</p>
  </blockquote>
  
  <p>These .apk files are built via TeamCity CI that just calls <code>assembleDebug</code> command.</p>
  
  <p>It is very strange because I can update release APK files built by CI easily. This problem occurs only in case of debug builds.</p>
  
  <p>Do you have any idea about this?
  Thanks in advance</p>