【问题标题】:Keystroke file not Found. #Flutter未找到击键文件。 #扑
【发布时间】:2021-04-03 09:43:31
【问题描述】:

*macOS

我已将我的击键文件生成为名称:'key.jks'

当我跑步时: flutter build apk

错误:

  • 出了什么问题:
    任务“:app:validateSigningRelease”执行失败。

找不到用于签署配置“发布”的密钥库文件“/key.jks>”。 `

我的“key.jks”文件位置: ...android/app/key.jks

我的“key.properties”

storePassword=123456
keyPassword=123456
keyAlias=key
storeFile=/key.jks>

我的“key.properties”位置: ...android/key.properties

我的“build.gradle”位置: android/app/build.gradle

【问题讨论】:

  • 嗨,有趣的是,文件路径中是否有一个流浪的>
  • 是的 @IronMan, storeFile=/key.jks> , '>' 默认情况下就在那里

标签: android flutter dart visual-studio-code


【解决方案1】:

key.properties 中我们应该设置正确的storeFile

storePassword=
keyPassword=
keyAlias=key
storeFile=./key.jks

您可能在最后留下了一个额外的>,通过关注documentation

storePassword=<password from previous step>
keyPassword=<password from previous step>
keyAlias=key
storeFile=<location of the key store file, such as /Users/<user name>/key.jks>

请记住将key.properties 文件保密,并且出于安全原因不要将其签入公共源代码控制。

【讨论】:

  • 谢谢!这对我有用 storeFile=./key.jks 而不是 storeFile=/key.jks&gt;
猜你喜欢
  • 2021-08-23
  • 2019-08-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-12-08
  • 2017-08-21
相关资源
最近更新 更多