How to make Apk of Xamarin Application to Run on Android Device

旧城冷巷雨未停 提交于 2019-12-12 09:22:39

问题


I am new to Xamarin Mobile App Development.I have developed a basic mobile app but I am having an issue with creating the .apk to test it on my Samsung Galaxy S-5 Android phone.I searched few ways from google but None of them worked. Kindly suggest some simple solution for this, also I want to run the app on windows phone too if there is any way for that as well?.

Any help would be grateful.


回答1:


For Generating an APK file you need to perform the following steps in Visual Studio 15:

1.In your toolbar change the project from debug mode to release mode

2.Right-click on your Project and Select Archive...

3.Click on the generated archive and below on the Right side you will find two options Open folder and Distribute. (Select Distribute)

4.Then on the Pop-up that appears Select AD-HOC

5.Click on the Green plus icon to add signing identity where you need to provide the identity of the signing person or company

6.After creating the signing identity click on that identity to select it and then click on save as to save your APK.

7.A pop-up will appear asking password for the signing identity which you will produce in step 5.

And The same project cannot run on windows phone unless you are using Xamarin forms, so I would suggest you that you create future projects in Xamarin forms so you can access the cross-platform feature that Xamarin is well known for.

Goodluck!



来源:https://stackoverflow.com/questions/47554324/how-to-make-apk-of-xamarin-application-to-run-on-android-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!