4

生成上传密钥和密钥库_12066261的技术博客_51CTO博客

 2 years ago
source link: https://blog.51cto.com/u_12076261/5557993
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

生成上传密钥和密钥库

原创

如果您还没有上传密钥(配置 Play 应用签名功能时需要使用),可以使用 Android Studio 生成一个,具体步骤如下所示:

  1. 在菜单栏中,依次点击Build > Generate Signed Bundle/APK
  2. Generate Signed Bundle or APK 对话框中,选择 Android App BundleAPK,然后点击 Next
  3. Key store path 字段下,点击 Create new
  4. New Key Store 窗口中,为您的密钥库和密钥提供以下信息,如图 2 所示。

生成上传密钥和密钥库_bundle

编辑切换为居中

添加图片注释,不超过 140 字(可选)

图 2. 在 Android Studio 中创建新的上传密钥和密钥库。

  • 密钥库
  • Key store path:选择创建密钥库的位置。 此外,还应在位置路径末尾添加一个扩展名为 .jks 的文件名。
  • Password:为您的密钥库创建并确认一个安全的密码。
  • 密钥
  • Alias:为您的密钥输入一个标识名。
  • Password:为您的密钥创建并确认一个安全的密码。它应该与密钥库密码相同。
  • Validity (years):以年为单位设置密钥的有效时长。密钥的有效期应至少为 25 年,以便您可以在应用的整个生命期内使用同一密钥为应用更新签名。
  • Certificate:为证书输入一些关于您本人的信息。此信息不会显示在应用中,但会作为 APK 的一部分包含在您的证书中。
  • 填写完表单后,请点击OK

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK