Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

492
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!