title: .apk Built from GitHub Workflow not Compatible with Local Build
body: <p>When I try to install an .apk built from a GitHub workflow over one that I built locally, I get the following error:</p>
  <pre><code>$ adb install -r /path/to/package-debug.apk
  Performing Push Install
  /path/to/package-debug.apk: 1 file pushed, 0 skipped. 14.1 MB/s (4047241 bytes in 0.275s)
          pkg: /data/local/tmp/package-debug.apk
  Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
  </code></pre>
  <p>I can install the GitHub built version if I uninstall the locally built package first.</p>
  <p>I have run <code>aapk</code> on both packages to make sure they were built with the same <code>min</code> &amp; <code>target</code> values. My guess is that the key signatures are different, but I'm not sure. The build is configured to use the default signing config (<code>signingConfig signingConfigs.debug</code>) in <code>build.gradle</code>. Do different versions of the Android development tools provide different versions of the debug signing keystore? Or does each installation generate a unique keystore file? Is there a way I can get more information on why the installation fails?</p>
  <p>I also noticed that the file sizes are different:</p>
  <pre><code>$ wc -c local-debug.apk
  4085058 local-debug.apk
  
  $ wc -c remote-debug.apk
  4047241 remote-debug.apk
  </code></pre>
  <p>I have looked at <a href="https://stackoverflow.com/questions/49757862/install-failed-update-incompatible-package-signatures-do-not-match-the-previous">this question</a>, but the answers are about uninstalling first. I need to figure out how to make the remote build compatible with the local one.</p>