一、报错内容
Execution failed for task ':app:packageRelease'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> com.android.ide.common.signing.KeytoolException: Failed to read key key0 from store "E:\dtdemo\BSDiffDemo-master\laodi.jks": Invalid keystore format
原因jdk版本不匹配导致
二、解决方案:
打开工程结构 file--》project structure,如下图所示,修改jdk版本,我这边修改为jdk11

在执行打包命令,成功解决。
