-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting AOT/Precompiling error when building in release mode [Android] #20602
Comments
The errors log state that "Clipper" and "Azure.Data.Tables" are missing, probably because they are not being explicitly referenced to be included. I'm not sure if that's an issue with the library or the Android build process (CC @jonathanpeppers if you know), but it's easy to fix. https://github.com/drasticactions/MauiRepros/tree/main/AndroidTrimmerTest Add it as a reference and it should build. Also note that this is not a MAUI UI related issue, you would hit this on a plain .NET Android app, and my guess is that it's something that needs to be fixed with that library specifically. |
Hi @SarthakB26. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@drasticactions thanks for the quick response really appreciated. |
It won't fail in Debug because of AOT. Release mode compiles with MonoAOT and, for whatever reason, those libraries are not included. My assumption is that it's a library issue for not including those assemblies or it could be something that needs to be preserved to prevent being trimmed. It could also be a runtime issue that it's not included. Regardless, it's not a MAUI UI issue or related to code in this repo. It's most likely a runtime build issue or a library one that Barcode would need to address. |
above suggestion worked thanks. |
Description
Getting bunch of below error when trying to create release build on android when AOT and Trimming is enabled.
Everything work fine in debug mode I am able to generate barcode and all.
Couldn't find much how to resolve these types of issues.
I don't want to turn off aot and trimming for android. which is a no go for android app performance
Not sure if this is trimming related or aot
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13,14
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: