Flutter选择错误的密钥库路径并给出错误的key.jks找不到 [英] Flutter Picking Wrong Keystore path and giving error key.jks not found
本文介绍了Flutter选择错误的密钥库路径并给出错误的key.jks找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遵循了Flutter官方网站上的所有步骤,并认为我可以正确完成所有操作,但是在构建它时找不到密钥库文件。
I followed all the steps on the Flutter official site and thought I'd done everything correctly but it is failing to locate the keystore file when I build it.
这是我得到的错误消息,显示为错误的路径,而不是
D:\flutterapps\testapp\key.jks
:
This is the error message I get showing it taking wrong path instead of
D:\flutterapps\testapp\key.jks
:
PS D:\flutterapps\testapp> flutter build apk
Initializing gradle... 1.3s
Resolving dependencies... 4.3s
Gradle task 'assembleRelease'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:validateSigningRelease'.
> Keystore file 'D:\flutterapps\testapp\android\app\ D: lutterappspublishkey.jks' not found for signing config 'release'.
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Gradle task 'assembleRelease'... Done 5.3s
Gradle task assembleRelease failed with exit code 1
PS D:\flutterapps\testapp>
推荐答案
使用
storePassword=123456
keyPassword=123456
keyAlias=key
storeFile=key.jks
代替此
storePassword=123456
keyPassword=123456
keyAlias=key
storeFile=D:\flutterapps\testapp\key.jks
,还将key.jks移至
D:\flutterapps\testapp\android\app\key.jks
and also moved key.jks to D:\flutterapps\testapp\android\app\key.jks
此路径在终端内部错误显示
as this path shown in error inside terminal
谢谢。
这篇关于Flutter选择错误的密钥库路径并给出错误的key.jks找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文