I am migrating a native Android app to Flutter. I’ve rewritten the app from scratch in flutter, and I’d like to test upgrading from the Android app to the Flutter app (I want to make sure the Flutter app can read and correctly handle the locally stored data from the Android app.)
If I uninstall the old, native version, I am able to launch the new version just fine. However, if I try to install the new version with the old version installed, it launches the OLD version and just hangs forever in the console with the following output. It never launches the new version of the app.
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Building with Flutter multidex support enabled.
Built build/app/outputs/flutter-apk/app-debug.apk.
The Flutter app has the same application id as the Android app but a newer version code. This behavior happens on both a real device and the emulator.
Please don’t tell me to uninstall the old version; that would defeat the purpose of this test! Any other ideas or even just suggestions on how to debug this would be appreciated.