Cause: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block...

Android studio签名打包时报错:

错误内容:
Cause: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: 
Given final block not properly padded. Such issues can arise if a bad key
 is used during decryption.
错误原因:

在app build.gradle文件里面签名配置项中jks签名文件密码配置错误。

解决方法:

如果有正确密码,则改正。否则重新生成一个签名文件即可。

你可能感兴趣的:(Cause: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block...)