MAUI Android publish fails: missing System.Activator.CreateDefaultInstance
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- android, csharp
- Área
- build-system, ci-cd, mobile
Línea de trabajo
Start by reproducing the publish failure from MauiAndroidDefault.csproj with UseMonoRuntime=true and compare it with the passing Default CoreCLR jobs. Inspect the failure around ILCompiler.ReadyToRunCodegenCompilation and the missing System.Activator.CreateDefaultInstance method; done means the configured Mono performance scenario publishes successfully without NETSDK1096.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
MAUI Android performance CI jobs fail when publishing MauiAndroidDefault.csproj with UseMonoRuntime=true.
Error
Unhandled exception. System.InvalidOperationException:
Expected method 'CreateDefaultInstance' not found on type
'[S.P.CoreLib]System.Activator'
error NETSDK1096: Optimizing assemblies for performance failed.
The stack trace includes ILCompiler.ReadyToRunCodegenCompilation (which is weird for Mono...)
Environment
| Component | Version |
|---|---|
| Build host | Windows 22H2, x64 |
| Target | net11.0-android, android-arm64, Release |
| .NET SDK | 11.0.100-rtm.26473.115 |
| Android workload | 37.99.0-preview.1.30 |
| MAUI workload | 11.0.0-rc.2.26474.8 |
| dotnet/performance commit | 1f0e0f68889a0996f30e265846446549a801800e |
Expected and actual behavior
Expected: The configured Mono performance scenario publishes successfully.
Actual: Crossgen throws the exception above, and publish fails with NETSDK1096. The underlying cause is not yet confirmed.
CI evidence
- Build 3087066: Mono Pixel10a job: the same error affects the GalaxyA16 and Pixel8 Mono jobs.
- Build 3086879: Mono Pixel10a job: the same error affects the GalaxyA16 Mono job.
The corresponding Default CoreCLR jobs pass in both builds. CI links require internal Azure DevOps access.
- Lenguaje dominante
- C#
- Estrellas
- 2.1k
- Forks
- 580
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 239
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dotnet/android
-
Area: App+Library Build
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Area: Debugger enhancement needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
EditText.getText() isn't boundAbiertoArea: Mono.Android
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
dotnet/android#9192 · 4 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
flaky-ci flaky-tests needs-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
Todos los issues de dotnet/android
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
microsoft/onnxruntime-genai#2633 ·
Los mantenedores suelen responder en 1 día
-
python triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
microsoft/semantic-kernel#14491 ·
Los mantenedores suelen responder en 2 días
-
area:jobads-cv FE mvp P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
klasolsson81/jobbliggaren#1878 ·
Los mantenedores suelen responder en 1 día
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
pnp/pnpcore#1878 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
SubtitleEdit/subtitleedit#15331 · 2 comentarios ·
Los mantenedores suelen responder en 1 día