.NET MAUI Exception Line Number Doesn't Show In AppCenter or StackTrace On Android

196 Views Asked by At

I am using NET MAUI with .net 7 and Microsoft App Center for Android diagnostics. When in debug mode it works fine and all exceptions sended to App Center has exception Line Numbers. But when I try it on release build with real android devices it sends no LineNumber and limited information about exception.

Debug Build Exception Report Example On Appcenter:

Debug Build Exception Report Example On Appcenter:

Release Build Exception Report For Same Exception On Appcenter:

Release Build Exception Report For Same Exception On Appcenter:

I tried to upload symbol files to the AppCenter to fix this but it's not working.

By the way I am not experienced with creating debug symbol files and maybe I am doing something wrong while creating it. The way I do it is;

  • Go to the project's obj\Release\net7.0-android\android-arm64\aot folder , select all .so files and zip them
  • Upload this file to the Appcenter.

Am I doing something wrong about creating the symbol files and if not how can I get line numbers of exceptions in Appcenter.

Thanks

0

There are 0 best solutions below