Issue
VS 2019 - Xamarin 4.8
In the PCL Project I have the Optimize Code checkbox checked.
In the Android Project, if I check the Optimize Code checkbox, the App crashes immediately on start up. If I don't have it checked, it works fine.
Question: Is ticking the Optimize Code checkbox in the Android Project required if it is already ticked in the PCL project? (to produce optimised code)
I have tried the options from this page: https://forums.xamarin.com/discussion/55666/app-runs-in-debug-mode-crashes-in-release-mode
Solution
Changing the "Code Shrinker" option from blank to r8 seems to have fixed the issue. In case others are having a similar issue, here are my "Android Options":
And here are by Android Build settings:
Answered By - Rob L
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.