I am creating an Android application in release mode. The first time I install it on a device, it works fine. But if I rebuild it from the same source, sign it with the same key and reinstall it, it fails. I get the following error in the logs:
W/InstallAppProgress(30456): Replacing package:com.mycompany.myapp W/ActivityManager(26370): No content provider found for permission revoke: file:
The application version code is set to 3, both times I create it. Where does the idea that the update is "version 0" come from?
UPDATE: I have this in my manifest file: android:versionCode="@integer/app_version_code" . And I have <integer name="app_version_code">3</integer> defined in res/values/strings.xml .
I am sure it worked, but now it does not look like. If I replaced the @integer link with the hard-coded "3", it will work. Shouldn't @integer be supported?
source share