AS签名打包报错记录:com.android.ide.common.signing.KeytoolException: Failed to read key TraPlaApp from st(解决)

文字目录

详细报错信息

报错原因分析

解决方法

总结


详细报错信息

Execution failed for task ':app:packageApp_onlineRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
   > com.android.ide.common.signing.KeytoolException: Failed to read key TraPlaApp from store "E:\SczeProject\scze_jks\TraPlaApp.jks": Invalid keystore format

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

报错原因分析

使用家里笔记本AS高版本Android Studio Chipmunk | 2021.2.1 Patch 2 创建的签名文件TraPlaApp.jks在该版本签名打包是正常的。

然后使用该TraPlaApp.jks文件,在公司电脑上的AS版本号Android Studio Bumblebee | 2021.1.1 Patch 3 打包就报错了。

解决方法

发现使用版本号2.2.2的AS创建的签名文件却可以兼容,Chipmunk和Bumblebee版本,我立马用Bumblebee版本AS创建了一个签名文件,成功解决以上问题,Chipmunk版本也可以正常打包兼容。

​​​​​​​ 

总结

通过测试确认低版本AS创建的签名文件可以兼容高版本的AS打包。

猜你喜欢

转载自blog.csdn.net/piyangbo/article/details/126972409