This was happening in my project because I was using an XML resource to set the version code.
AndroidManifest.xml:
android:versionCode="@integer/app_version_code"
app.xml:
<integer name="app_version_code">64</integer>
This wasn't a problem in prior versions of adb
, however, as of platform-tools
r16 this is no longer being resolved to the proper integer. You can either force the re-install using adb -r
or avoid the issue entirely by using a literal in the manifest:
android:versionCode="64"