rchau
rchau

Reputation: 535

failed to install app in Xamarin Forms?

I have developed a simple application in Xamarin forms. It is running properly on android emulator in my PC.

I have archived the android project and generated apk for that however it is not installing in my android phone. The error message is

failed to install the app

I have mostly used the default configuration values while building the app and archiving.

Only these are the configuration which I have changed:

  1. Inside Android Option Unchecked the Use Shared the runtime.
  2. and in Linking changed none to Sdk assemblies only.
  3. Configuration is Debug and platform is Active(Any CPU). Although I tried installing app with all three value including Debug, Release, Active(Debug) but none of them installed.

What is wrong here?

Upvotes: 1

Views: 1496

Answers (2)

Mark Barton
Mark Barton

Reputation: 897

Likely you have not gone on to "distribute" your app. All apps (even personal and private apps) have to be signed with a digital certificate (this is done for you when deploying and debugging in a local Visual Studio Session).

In order to deploy a 'release' build of your app, archive the app and then press 'distribute'. Choose 'AdHoc' and create a new certificate for your app. This should then allow the app to be installed on your device. There is no cost associated with this;

https://learn.microsoft.com/en-us/xamarin/android/deploy-test/signing/?tabs=windows

Upvotes: 0

Dyowed
Dyowed

Reputation: 71

Try changing the Android Package Format to APK

Upvotes: 6

Related Questions