【问题标题】:No key with alias 'upload' found in keystore C:\Users\alank\newapp\android\app\key.jks在密钥库 C:\Users\alan\newapp\android\app\key.jks 中找不到别名为“上传”的密钥
【发布时间】:2021-10-20 03:22:47
【问题描述】:

我创建了我的第一个 Flutter 应用,我想发布 Android 版本,不幸的是,我收到了这个错误:

任务“:app:signReleaseBundle”执行失败。

执行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 时发生故障 无法从商店“C:\Users\alan\OneDrive\Desktop\flutter_app\new app\newapp\android\app\key.jks”读取密钥上传:在密钥库 C:\Users\ 中找不到别名为“上传”的密钥alank\OneDrive\Desktop\flutter_app\new app\newapp\android\app\key.jks


I create a key Properties file in android file :
storePassword=xxxxxxxxxxxxxx
keyPassword=xxxxxxxxxxxxxx
keyAlias=upload
storeFile= ../app/key.jks

【问题讨论】:

    标签: android flutter android-studio dart google-play


    【解决方案1】:

    在终端中使用此命令找出您使用的别名:

    keytool -v -list -keystore my.keystore

    【讨论】:

    • 嗨 stacktrace2234 感谢您回答我,我尝试使用该命令并收到此错误:java.lang.Exception:密钥库文件不存在:my.keystore
    • my.keystore 应替换为您的密钥库:key.jks
    • 我刚做了,不幸的是,我仍然遇到同样的问题,你知道可能是什么问题吗。
    • 您是否在可以找到 key.jks 文件的文件夹中运行该命令?
    • 我在 vs 代码中生成了它,然后我将它复制到我项目的 android/app 中,所以我在我的项目中运行了该命令
    猜你喜欢
    • 2019-04-03
    • 2015-05-11
    • 2022-01-24
    • 2017-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-25
    相关资源
    最近更新 更多