(1)Android Studio菜单Build->Generate Signed APK
(2)弹出窗口
(3)创建密钥库及密钥,创建后会自动选择刚创建的密钥库和密钥(已拥有密钥库跳过)
点击“Create new...”按钮创建密钥库
Key store path:密钥库文件的地址
Password/Confirm:密钥库的密码
Key:
Alias:密钥名称
Password/Confirm:密钥密码
Validity(years):密钥有效时间
First and Last Name:密钥颁发者姓名
Organizational Unit:密钥颁发组织
City or Locality:城市
Country Code(XX):国家
(4)选择已存在密钥库及密钥(在(3)中创建密钥库后跳过此步骤)
点击“Choose existing...”按钮找到密钥库文件
Key store password输入已选择的密钥库文件的密码
点击Key alias后的“...”按钮,选择或者创建一个密钥
选中“Use an existing key”,在后面的选择框中选择密钥
选中“Create a new key”,创建新的密钥,详见(3)
点击OK按钮
Key passowrd输入选择的密钥的密码
(5)点击“Next”按钮,选择保存路径后,点击“Finish”按钮完成
![](https://i-blog.csdnimg.cn/blog_migrate/2b563d9f9388b9cb691c1102828d9dff.png)
(2)弹出窗口
![](https://i-blog.csdnimg.cn/blog_migrate/2d43dba3eca1a9c12bdad753d5cfdc70.png)
(3)创建密钥库及密钥,创建后会自动选择刚创建的密钥库和密钥(已拥有密钥库跳过)
点击“Create new...”按钮创建密钥库
![](https://i-blog.csdnimg.cn/blog_migrate/ab5b8ae28151918acee6c82330d65a46.png)
Key store path:密钥库文件的地址
Password/Confirm:密钥库的密码
Key:
Alias:密钥名称
Password/Confirm:密钥密码
Validity(years):密钥有效时间
First and Last Name:密钥颁发者姓名
Organizational Unit:密钥颁发组织
City or Locality:城市
Country Code(XX):国家
(4)选择已存在密钥库及密钥(在(3)中创建密钥库后跳过此步骤)
点击“Choose existing...”按钮找到密钥库文件
Key store password输入已选择的密钥库文件的密码
点击Key alias后的“...”按钮,选择或者创建一个密钥
![](https://i-blog.csdnimg.cn/blog_migrate/7eec59f9c9ecfe85daa30ffdff086bed.png)
选中“Use an existing key”,在后面的选择框中选择密钥
选中“Create a new key”,创建新的密钥,详见(3)
点击OK按钮
Key passowrd输入选择的密钥的密码
(5)点击“Next”按钮,选择保存路径后,点击“Finish”按钮完成
原创链接:
http://chenfeicqq.iteye.com/blog/1889160