AS signature packaging error record: com.android.ide.common.signing.KeytoolException: Failed to read key TraPlaApp from st (solved)

text directory

Detailed error message

Analysis of the cause of the error

Solution

Summarize


Detailed error message

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.

Analysis of the cause of the error

It is normal to sign and package the signature file TraPlaApp.jks created with the home notebook AS higher version Android Studio Chipmunk | 2021.2.1 Patch 2.

Then use the TraPlaApp.jks file to package the AS version number Android Studio Bumblebee | 2021.1.1 Patch 3 on the company computer and report an error.

Solution

I found that the signature file created by AS with version number 2.2.2 is compatible, and the Chipmunk and Bumblebee versions, I immediately created a signature file with the Bumblebee version AS, which successfully solved the above problems, and the Chipmunk version can also be normally packaged and compatible.

​​​​​​​ 

Summarize

Through testing, it is confirmed that the signature file created by the lower version of AS can be compatible with the higher version of AS packaging.

Guess you like

Origin blog.csdn.net/piyangbo/article/details/126972409