一 生成APK
1.打开android studio项目,点击Build->Generate Signed Bundle / APK
img_1.png
2.选择APK,点击Next进行下一步
img_2.png
3.输入对应的内容,点击Next进行下一步
(1)Key store path:密钥存储路径
(2)Key store password:密钥库密码
(3)Key alias:密钥别名
(4)Key password:钥匙密码
如果没有秘钥,点击Create New创建
img_3.png
其中Key Store path填写密钥存储路径,Vakidity(years)选择密钥的有效年限,Certificate里填入密钥的信息(我这里是随便填,不强求规格),点击OK创建完成
img_4.png
4.选择需要生成的APK类型,debug或release模式。Destination Folder选择文件需存放的位置,Signature Versions勾选上VI(Jar signature)和V2(Full APK Signature)。点击Finish
img_5.png
二 签名
使用爱加密进行加密https://www.ijiami.cn/tlogin,一般加密用时为20-30分钟。加密成功后下载应用,然后去加签
三 加签
我使用的是apk二次签名工具ApkSignTool进行加签img_6.png