选择360加固后需要重签名,360自带工具是v1签名,手动用apksigner进行签名的话报错,如下:
D:\develop\git\keystore>apksigner sign --ks D:\develop\git\keystore\simple_test1
. jks D:\develop\git\keystore\app-official-release-360cn.encrypted.apk
Keystore password for signer #1:
Failed to load signer "signer #1"
java.io.IOException: Failed to obtain key with alias "test1" from D:\develop\git
\keystore\simple_test1.jks. Wrong password?
at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCer
tsFromKeyStore(ApkSignerTool.java:690)
at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCer
ts(ApkSignerTool.java:555)
at com.android.apksigner.ApkSignerTool$SignerParams.access$200(ApkSigner
Tool.java:509)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:215)
at com.android.apksigner.Apk