android: Maui Android app update from Play store is crashing on startup

Description

Hi,

I’m testing an app that has been migrated from Xamarin to Maui. Maui app is currently in beta test on play store.

I’m facing a crash on app startup after installing the updated maui app. At this step, the installed app is the former Xamarin forms.

The logs are :

"Unable to open …/split_config.xxhdpi.dm: No such file or directory” “Entry not found” “AOT: NOT FOUND: MyCompany.MyApp.MyAppModule:Initialize ()” This crash only occurs if the old app is installed. If the user uninstall the app and reinstall it, the app starts correctly without any crash or error.

This is very difficult to test with a real device because the app is being automaticaly replaced when we try to launch it from Visual Studio.

I suspect that the Xamarin Forms files previously installed are causing a conflict but I don’t know how to avoid it.

Thanks for your help

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.14 SR1.4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No workarround found

Relevant log output

"Unable to open …/split_config.xxhdpi.dm: No such file or directory”
"Entry not found"
"AOT: NOT FOUND: MyCompany.MyApp.MyAppModule:Initialize ()"

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

@jonathanpeppers @dellis1972 , we made some advancement here. The splash activity was using MonkeyCache lib to retreive a cache value before opening main activity ; this call was causing the issue. We implement a workaround to avoid calling MonkeyCache on app upgrade. After some tests, the app is not crashing anymore on startup. We are facing other side effects that should not be linked with this issue.

I agree that it is strange that the logs didn’t report this.