生成签名的apk android studio [英] Generate signed apk android studio

查看:37
本文介绍了生成签名的apk android studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Android 开发的新手,刚刚完成了我的第一个应用程序.我想在 android studio 中生成一个签名的 apk.我阅读了开发人员文档,但无法理解这些步骤.当我点击 Build>Generate Signed APK... 时,它会显示一个对话框,询问以下内容:

I am new to android development and just finished my first app. I want to generate a signed apk in android studio. I read the developer docs but couldn't understand the steps. When I click on Build>Generate Signed APK..., it shows me a dialog box asking the following:

Keystore path  //with two options create new and choose existing
Keystore password
Key alias
key password

即使在谷歌搜索之后我也不明白什么是密钥库.当我选择 create new 时,它会要求我选择一个路径并找到一个我没有的 .jks 文件!任何人都可以解释并列出生成签名apk的步骤.

I don't get what is keystore even after googling it. When I choose create new it asks me to select a path and locate a .jks file which I don't have! Can anyone please explain and list the steps in order to generate a signed apk.

推荐答案

使用 Keytool 二进制文件或 exe 生成私有密钥库.此处的说明.然后,您可以使用此密钥库对您的应用程序进行签名.Keytool 会在您安装 Java 时安装.

Use Keytool binary or exe to generate a private keystore. Instructions here. You can then sign your app using this keystore. Keytool gets installed when you install Java.

注意:保存/备份此密钥库,因为一旦您通过使用此密钥库对其进行签名来发布正在播放的应用程序,您将必须使用相同的密钥库来进行任何未来的更新.所以,备份它很重要.

NOTE: Save/backup this keystore because once you publish an app on play by signing it with this keystore, you will have to use the same keystore for any future updates. So, it's important that you back it up.

HTH.

这篇关于生成签名的apk android studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆