Xamarin 简明教程
Xamarin - Deploying Your App
在完成构建您的应用的过程后,将其用于物理 Android 设备或允许其他人下载您的应用并将其安装到其设备上非常重要。
After completing the process of building your App, it’s important to use this App on a physical Android device or allow other people to download your App and install it on their devices.
Releasing Your App
在发布您的应用之前,务必将其转换为 Android 系统可以读取的格式。这种格式称为 apk file 。要创建一个 apk file 。
Before releasing your App, it is important to convert it into a format that can be read by an Android system. This type of format is called an apk file. To create an apk file.
-
Open your project.
-
Go to Build Menu and select Configuration Manager
-
On Configuration Manager, set Active Solution Configuration to release the App.
接下来,再次单击 Build Menu 并选择 Export Android Package(.apk) 。
Next, click the Build Menu again and select Export Android Package(.apk).
完成后, apk 文件将存储在项目文件夹 /bin/Release 中。
Once finished, the apk file will be stored in your project folder /bin/Release.
Google PlayStore
PlayStore 是最大的安卓应用市场。要将您的应用上传到 PlayStore,您需要拥有一个 Google 开发者帐户。开发者帐户创建一次,获得许可证需要花费 25 美元。
PlayStore is the largest market for Android apps. To upload your App to the PlayStore, you need to have a developer account with Google. The developer account is created once and costs $25 to get a license.
Manual Installation
手动安装涉及将生成的 .apk 文件直接安装到物理设备上。将文件复制到您的安卓设备的物理内存或 SD 卡上,然后从您的设备运行该文件。
Manual installation involves installing the .apk file generated directly on a physical device. Copy the file to your Android device’s physical memory or an SD card and then run the file from your device.
默认情况下,安卓会阻止安装并非来自 PlayStore 的应用。要安装您的应用,您必须启用它以接受来自 Settings 的应用安装。要执行此操作,请转到设备上的 Settings ,查找 Security 菜单,然后选中“允许安装来自未知来源的应用”。
Android, by default, blocks installation of Apps that are not from PlayStore. To install your App, you must enable it to accept the App installation from the Settings. To do this, go to Settings on your device, look for Security menu, and then then check "Allow installation of apps from unknown sources."