使用Android Studio生成签名APK的分步指南

本文提供了一种在Android Studio中生成签名APK的详细步骤,以将应用部署到Google Play商店。首先,需要登录Google账户,然后在菜单中选择“生成签名的包/ APK”。接着,创建新的密钥库,设置路径、密码和别名,并填写证书信息。最后,选中V1签名版本并完成生成过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Get a signed APK to deploy the android application on the Google play store

获取签名的APK,以便在Google Play商店中部署android应用

After you successfully develop your Android application, you need to develop its APK file. Here, APK files can be generated for testing purposes as well. However, in this blog, I will be discussing the stepwise procedure to generate a signed APK file for deploying your application in Google Play Store.

你成功地开发自己的Android应用程序一压脚提升,你需要开发它的APK文件。 在此,也可以生成APK文件以进行测试。 但是,在此博客中,我将讨论生成签名的APK文件的逐步过程,以将您的应用程序部署到Google Play商店中。

Note: Before you dive into the stepwise procedure, you should have adequate knowledge about the APK files and the difference between building an android APK and generating a signed APK file. Here’s the link to my blog where I talked about this subject matter.

注意:在逐步学习之前,您应该对APK文件以及构建android APK和生成签名APK文件之间的区别有足够的了解。 这是我讨论此主题的博客的链接。

在Android Studio中生成签名APK的分步过程 (Stepwise Procedure for Generating a signed APK in Android Studio)

Step 1: First of all you are required to ‘Sign in’ to your ‘Google account’ as shown in the image below.

步骤1:首先,您需要“登录”到“ Google帐户”,如下图所示。

Image for post

Step 2: Then, at the toolbar, click on the ‘Build’ option and select the ‘Generate Signed Bundle / APK …’ as shown in the image below.

步骤2:然后在工具栏上,单击“生成”选项,然后选择“生成签名的包/ APK…”,如下图所示。

Image for post

Step 3: Now, a pop-up appears as shown in the image below.

步骤3:现在,出现一个弹出窗口,如下图所示。

Image for post

Step 4: Here, select ‘APK’ in the radio button as shown in the image below. Then, click on the ‘Next’ button.

第4步:在此处,选择单选按钮中的“ APK”,如下图所示。 然后,单击“下一步”按钮。

Image for post

Step 5: Click on the ‘Create new … ’ button.

第5步:点击“创建新…”按钮。

Image for post

Step 6: Now, another pop-up regarding the ‘New Key Store’ appears.

步骤6:现在,出现另一个有关“新密钥库”的弹出窗口。

Image for post

Step 7: In ‘New Key Store’, browse a ‘Key store path’ by clicking on the Folder icon as shown in the image below. Then, provide a ‘Password’ and ‘Confirm’ password. Now, on the ‘Key’ section, provide an ‘Alias:’. After that enter a ‘Password’ and ‘Confirm’ password. Then, determine ‘Validity (years). Hence, after you have provided details regarding ‘Key’ you can move onto the ‘Certificate’ section. here, provide your ‘First and Last Name’. Then, enter your address details i.e. ‘City or Locality’, ‘State or Province’, and ‘Country Code (XX)’. After you have provided the required details, click on the ‘OK’ button.

步骤7:在“新密钥库”中,通过单击文件夹图标浏览“密钥库路径”,如下图所示。 然后,提供“密码”和“确认”密码。 现在,在“键”部分,提供“别名:”。 之后,输入“密码”和“确认”密码。 然后,确定“有效期(年)。 因此,在您提供了有关“密钥”的详细信息之后,您可以进入“证书”部分。 在这里,提供您的“名字和姓氏”。 然后,输入您的地址详细信息,即“城市或地点”,“州或省”和“国家代码(XX)”。 提供所需的详细信息后,单击“确定”按钮。

Image for post

Step 8: Now, you can see the path for your ‘Key store’.

步骤8:现在,您可以看到“密钥库”的路径。

Image for post

Step 9: Here, enter the ‘Key store password’ and ‘Key password’ as shown in the image below. After you have provided the ‘Key store password’ and ‘Key password’, click on the ‘Next’ button.

步骤9:在此处输入“密钥存储区密码”和“密钥密码”,如下图所示。 提供“密钥库密码”和“密钥密码”后,单击“下一步”按钮。

Image for post

Step 10: Checkmark the ‘V1 (Jar Signature)’ in ‘Signature Versions’ as presented in the image below.

步骤10:在“签名版本”中选中“ V1(Jar签名)”,如下图所示。

Image for post

Step 11: Now, after you have checked the ‘V1 (Jar Signature)’, click on the ‘Finish’ button.

步骤11:现在,在您选中“ V1(Jar签名)”后,单击“完成”按钮。

Image for post

Step 12: If you complete all the steps as required, your Signed APK will generate. Then once, your APK file gets generated, you can locate your .apk file by clicking on ‘locate’ from the information dialogue box, Generate Signed APK.

步骤12:如果您按照要求完成了所有步骤,则会生成Signed APK。 然后,一旦生成了APK文件,就可以通过在信息对话框“生成签名的APK”中单击“定位”来找到.apk文件。

Image for post

翻译自: https://medium.com/@positive.stud/step-by-step-guide-to-generate-a-signed-apk-using-android-studio-1e22ab7b3e86

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值