I am building a Flutter app and deploying it to the internal testing track on the Play Store. The app was previously uploaded and installed on a test device. When I upload the new build and tap the Install button from the internal link, the update installs, and then Open button very briefly displays before disappearing and being replaced by an Uninstall button.
Uninstalling the app and then reinstalling gives the same behavior.
AI suggested I check the versionCode reported by
adb shell dumpsys package institute.hopesoftware.pdconnect | findstr versionCode
The versionCode reported by this command (12) is lower than the versionCode that is currently uploaded to the Internal Testing track on the Play Store (14). The Play Store shows
Available to internal testers 1 version code Last updated Jun 11 11:15 AM
for version code 14.
This happened to me earlier this week, and then after many iterations, it all of a sudden worked. There, I remember doing a flutter clean although I don't believe it immediately worked after doing that. So it seemed like a more transient issue.
I would appreciate any suggestions for what I should try next, as this is quickly becoming very annoying. I don't think this has anything to do with device compatibility, since no significant changes to the code have been made that would be likely to cause problems.