-
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
[Bug]: Android release crash, debug work as normal #14653
Comments
Hi @Strypper. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md 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. |
Can you verify that this happens in a simple, new template, app? If it works there, but not in your code, then most likely we will need to go through what dependencies you have and if those are having an effect. If it fails in the template app, then it'll be easier to track down. |
Okay I will public my repository for you to try out, hope this will give you enough information |
Here you go, you should be able to pull down the project and explore, the app will deploy success on |
The problem is I don't know what cause the app to fail, I already check all the resource group keys and glue my eyes to the logcat but nothing show up I don't really know what cause the problem. |
Guys any update on this, please our team has been blocking so long because of this |
I tried your application in Release mode (main branch) on an Android 9 device and it worked just fine. In debug mode, I did notice the following warnings: |
We just completely remove the old source code and replace with a new that's why it work for you, the old issue is still lying in branch number 18 |
I have same issue and when I get Crash report it is like this: it works on debug mode but not in release. Andorid 10 Version, repro for different devices.
|
The user-provided sample project could no longer be found. We reproduced this issue by creating a new maui project on release mode with Visual Studio Enterprise 17.9.0 Preview 2. It works fine on debug mode. The repro steps as below:
|
Look, the repo you're referencing is ancient history. It's been gone for ages, and we had to rebuild from scratch due to major project shifts. My involvement there has zero relevance here. Stop wasting time on outdated stuff and focus on doing your job like the rest of us. |
Description
I use visual studio
17.5.4
whenever I deploy my app as published the app crash immediately when I launch it.Things I have tried:
<_MauiForceXamlCForDebug>true</_MauiForceXamlCForDebug>
in my .csproj this will help me pick up common bugs such as incorrect static-resource binding keys at debug but this time debug environment works perfectly finetombstoned
,wakelock
Log
Fortunately, when I connect to my physical device the log seems clearer than the emulator but I don't know what the message below means hope that you guys can help me out with this project that needs to be released for the prototype.
Relevant log is attached below
Steps to Reproduce
Unknown
Link to public reproduction project repository
Repository Branch 18
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
All available android version for .NET MAUI
Did you find any workaround?
Not yet
Relevant log output
The text was updated successfully, but these errors were encountered: