-
Notifications
You must be signed in to change notification settings - Fork 18
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
[.NET MAUI] Application crash on startup #181
Comments
@leoslima1 can you provide more information about the crash? |
Hey @rygo-msft thank you for the response. Actually the call stack is empty, just appear "[External Code]". The only message that appear is: Java.Lang.RuntimeException: And that's what I have from output:
|
@leoslima1 This is unfortunately not sufficient information to begin an investigation. According to the stack trace, the failure is occurring while initializing a ContentProvider, additional logcat context should indicate what that provider is. Information in the AndroidManifest.xml should also help to identify what resources the provider might be attempting to reference. Please share logcat logs capturing the time from app launch to app crash. |
@rygo-msft here's the logcat:
And here is the manifest file:
|
@leoslima1 Hmm... there is nothing that is indicating MAM is responsible for the crash. Can you share what additional NuGet packages are referenced by your app? It is possible there is code we did not anticipate being intercepted by the MAM SDK. |
Hey @meghandaly of course I can share my nuget packages. I'm also questioning myself what can be happening, but no luck looking at the logs. Here's my packages: `
|
@leoslima1 thank you! EDIT: For my test app, From
If you inspect your app's Can you also share the relevant snippets from your merged For example, ours contains:
And any references to the |
@leoslima1 are you able to share the requested info? |
Hey @meghandaly of course I can share with you, I can't do it right now, because i'm traveling and did not bring my laptop, I'll be back this week, and will share with you as soon as possible. Thank you |
Hi @meghandaly I could get the values for you: That's the
Here's the full manifest after build:
Let me know if you need something else. |
Hey @meghandaly any news? |
Hey @meghandaly any news about that issue? |
Hi @meghandaly @rygo-msft can you guys help me on that, i'm still getting the same issue, even after upgrading to .net 8 |
@meghandaly @rygo-msft this issue can be closed, this is not happening anymore using .net 8 and also the latest version of sdk |
Intune Android App SDK for .NET MAUI Issue
Summary
The application is crashing right after the startup on Android. Java.Lang.RuntimeException:
Unable to get provider androidx.startup.InitializationProvider: android.content.res.Resources$NotFoundException: String resource ID #0x7f10001b
I have all the configurations made on
AndroidManifest.xml
like adding the meta-data forcom.microsoft.intune.mam.aad.ClientId
, also have themicrosoft.identity.client.BrowserTabActivity
for MSAL authentication.Before the application crash, i'm getting this from log:
[MAMInfo] MAMInfo initialized. Debug=false, Agent=PRODUCTION, ManagedDialogDisabled=false, PolicyRequired=false, MultiIdentityEnabled=false, FullBackupContent=true, DataExtractionRules=true, UseDefaultEnrollment=false, ExceptionOnInit=false, Debuggable=true, IsolatedProcessesAllowed=false
[MAMComponents] Not initializing MAM classes because the MDM package is not installed.
[MAMComponents] Not initializing MAM classes because the MDM package is not installed.
Details
Microsoft.Intune.Maui.Essentials.android
Version:9.5.2-beta2Logs
For build issues, please include:
[MAMInfo] MAMInfo initialized. Debug=false, Agent=PRODUCTION, ManagedDialogDisabled=false, PolicyRequired=false, MultiIdentityEnabled=false, FullBackupContent=true, DataExtractionRules=true, UseDefaultEnrollment=false, ExceptionOnInit=false, Debuggable=true, IsolatedProcessesAllowed=false
[MAMComponents] Not initializing MAM classes because the MDM package is not installed.
[MAMComponents] Not initializing MAM classes because the MDM package is not installed.
Questions to Ask Before Submission
Microsoft.Intune.Maui.Essentials.android
package? YESbin
andobj
output folders? YESMicrosoft.Intune.Maui.Essentials.android
NuGet package version? YESThe text was updated successfully, but these errors were encountered: