Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

495
Vistas
Visual Studio 2019 error XA0136: The run as command failed with 'run as: package has corrupt installation

I am trying to deploy an android app built on C# .NET (in debug mode) to Nokia 5 (Android Pie) using Visual Studio 2019 v16.10.3, but it always fails with error :

XA0136: The 'run-as' command failed with 'run-as: package has corrupt installation: com.ashish.myapp.'

However it deploys and runs successfully in the same device when I turn off the Fast Deployment mode. It also deploys successfully in android emulator with Fast Deployment mode on.

Well obviously I am able to test my builds but it is quite difficult to test gestures on emulator, on the other hand it takes almost 1 minute to deploy an app on a physical device when Fast Deployment mode is off.

Do anyone has any solution?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You could speed up by configuring your project. You could check the configurations in Debug Builds and Release builds.

  1. Enable Fast Deployment (If you do not want this, try the following steps.)

Without Fast Deployment, Xamarin.Android has to build an APK every time there’s change in your project, regardless of size or scope.

  1. UnCheck Multi-Dex

Enable Multi-Dex should be unchecked: unless your app fails to build without it.

  1. Uncheck these Release-only Settings

Using AOT, Linking, or a Code Shrinker for Debug configurations is not that helpful. They will slow down your Debug builds with no real benefit.

For more details, you could check the link below. Some other tricks would be helpful too. https://devblogs.microsoft.com/xamarin/optimize-xamarin-android-builds/

Link SDKs and Frameworks

You could try to utilize the Linker for Release Configuration builds.

On Android Build Settings, generally, we could use Shared Mono Runtime and Fast Assembly Deployment like deploy assemblies to a directory on the device instead of bundling them in the APK. Link SDK assemblies only would reduce the time as well.

The more detailed information about speed-up the build time you could find here. https://github.com/brminnick/ImproveXamarinBuildTimes

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda