* **Android Studio菜单Build->Generate Signed APK**
![](https://box.kancloud.cn/42ce9a2d90b22d112f544e0d814b687d_445x319.png)
* **建密钥库及密钥 -> 点击“Create new...”**
![](https://box.kancloud.cn/9fde78cb3158fbbf703f53ce24e3194e_463x321.png)
* **创建密钥库及密钥**
Key store path:密钥库文件的地址
Password/Confirm:密钥库的密码
Key:
Alias:密钥名称
Password/Confirm:密钥密码
Validity(years):密钥有效时间
First and Last Name:密钥颁发者姓名
Organizational Unit:密钥颁发组织
City or Locality:城市
State or Province:省
Country Code(XX):国家
![](https://box.kancloud.cn/41b2e8c93f3aa7234c1c63c32ce0672c_401x372.png)
* **选择已存在密钥库及密钥 -> 点击“Choose existing...”**
* **输入已选择的密钥库文件的密码 **
* **选择秘钥及秘钥密码**
![](https://box.kancloud.cn/473413505e4fb53d20aff276c1220a49_431x389.png)
![](https://box.kancloud.cn/30240a83bd1b751564a1646221bbb336_413x270.png)
* **点击“Next”按钮,选择保存路径后,点击“Finish”按钮完成**
![](https://box.kancloud.cn/d730f22a215333649b68179b4b48e6ef_509x332.png)