📜  发布Android应用程序

📅  最后修改于: 2021-01-05 05:04:10             🧑  作者: Mango


Android应用程序发布是使用户可以使用Android应用程序的过程。感染,发布是Android应用程序开发过程的最后阶段。

发布

Android开发生命周期

开发并全面测试了Android应用程序后,您就可以开始使用Google Play(著名的Android市场)免费销售或分发。您还可以通过将应用程序直接发送给用户或让用户从您自己的网站下载它们来发布应用程序。

您可以在Android官方网站上查看详细的发布过程,但是本教程将引导您完成一些简单的步骤,以便在Google Play上启动您的应用程序。这是一个简化的检查清单,可帮助您启动Android应用程序-

Step Activity
1 Regression Testing Before you publish your application, you need to make sure that its meeting the basic quality expectations for all Android apps, on all of the devices that you are targeting. So perform all the required testing on different devices including phone and tablets.
2 Application Rating When you will publish your application at Google Play, you will have to specify a content rating for your app, which informs Google Play users of its maturity level. Currently available ratings are (a) Everyone (b) Low maturity (c) Medium maturity (d) High maturity.
3 Targeted Regions Google Play lets you control what countries and territories where your application will be sold. Accordingly you must take care of setting up time zone, localization or any other specific requirement as per the targeted region.
4 Application Size Currently, the maximum size for an APK published on Google Play is 50 MB. If your app exceeds that size, or if you want to offer a secondary download, you can use APK Expansion Files, which Google Play will host for free on its server infrastructure and automatically handle the download to devices.
5 SDK and Screen Compatibility It is important to make sure that your app is designed to run properly on the Android platform versions and device screen sizes that you want to target.
6 Application Pricing Deciding whether you app will be free or paid is important because, on Google Play, free app’s must remain free. If you want to sell your application then you will have to specify its price in different currencies.
7 Promotional Content It is a good marketing practice to supply a variety of high-quality graphic assets to showcase your app or brand. After you publish, these appear on your product details page, in store listings and search results, and elsewhere.
8 Build and Upload release-ready APK The release-ready APK is what you you will upload to the Developer Console and distribute to users. You can check complete detail on how to create a release-ready version of your app: Preparing for Release.
9 Finalize Application Detail Google Play gives you a variety of ways to promote your app and engage with users on your product details page, from colourful graphics, screen shots, and videos to localized descriptions, release details, and links to your other apps. So you can decorate your application page and provide as much as clear crisp detail you can provide.

导出Android应用程序

Android申请流程

APK开发过程

导出应用之前,您必须先使用一些工具

  • Dx工具(Dalvik可执行工具):它会将.class文件转换为.dex文件。它对内存优化和减少启动速度时间很有用

  • AAPT (Android辅助打包工具):将.Dex文件转换为.Apk很有用

  • APK (Android包装套件):部署过程的最后阶段称为.apk。

在将其上传到Google Play市场之前,您需要将应用程序导出为APK(Android软件包)文件。

要导出应用程序,只需在Android Studio中打开该应用程序项目,然后从Android Studio中选择Build→Generate Signed APK ,然后按照简单的步骤导出应用程序-

生成签名APK

接下来,选择“生成签名的APK”选项,如上面的屏幕截图所示,然后单击它,以进入以下屏幕,在该屏幕上,您将选择“创建新的密钥库”来存储您的应用程序。

生成签名APK

输入密钥存储路径,密钥存储密码,密钥别名和密钥密码以保护您的应用程序,然后再次单击下一步按钮。它将显示以下屏幕,让您创建应用程序-

生成签名APK

填写完所有信息(如应用程序目标,构建类型和样式)后,请单击完成按钮。在创建应用程序时,它将显示如下

创建应用

最终,它将以APK formate文件的形式生成您的Android应用程序,并将其上传到Google Play市场。

Google Play注册

最重要的步骤是使用Google Play Marketplace向Google Play注册。如果有的话,您可以使用现有的Google ID,否则可以创建一个新的Google ID,然后在市场上注册。您将有以下屏幕接受条款和条件。

Android Market条款及细则

您可以使用“继续付款”按钮继续支付25美元的注册费,最后完成您的帐户详细信息。

一旦您成为Google Play的注册用户,就可以上传适用于您应用的发行版APK ,最后您将使用上述清单第9步中提到的应用详细信息页面来完成应用详细信息。

手动签名您的应用

您不需要Android Studio即可对您的应用进行签名。您可以使用Android SDK和JDK中的标准工具从命令行对应用程序进行签名。要从命令行以发布模式对应用程序进行签名-

  • 使用keytool生成私钥
$ keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 10000
  • 在发布模式下编译您的应用以获取未签名的APK

  • 使用jarsigner使用私钥对应用程序签名

$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore my-release-key.keystore my_application.apk alias_name
  • 确认您的APK已签名。例如-
$ jarsigner -verify -verbose -certs my_application.apk
$ zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk

一些应用市场


  • 谷歌播放


  • phoload



  • 亚马逊应用商店


  • 1台


  • 赛德市场


  • Yandex商店


  • F-机器人


  • 三星Galaxy AppStore