flutter Failed to read key key from store

* What went wrong:
Execution failed for task ':app:packageRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
   > com.android.ide.common.signing.KeytoolException: Failed to read key key from store "D:\xxx\android\key.jks": No key with alias 'key' found in keystore D:\xxx\android\key.jks

检查多次,文件名是没问题的!

最后问题出在,生成key时的命令,这里检测的并不是文件名,而是jks在生成时的定义的名称

官方命令:

keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload

正解:

android - No key with alias 'key' found in keystore flutter - Stack Overflow

猜你喜欢

转载自blog.csdn.net/nocoah/article/details/131245654
key