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

3
我正在尝试为我的应用创建一个appbundle,但是出现了这个警告。
C:\Users\IMBA\AndroidStudioProjects\quizzi>flutter build appbundle

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:validateSigningRelease'.
> Keystore file 'C:\Users\IMBA\AndroidStudioProjects\quizzi\android\app\<C:UsersIMBAAndroidStudioProjectsquizziandroidappkey.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 7s
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done                         7.8s
Gradle task bundleRelease failed with exit code 1

但是我的 key.jks 文件已经制作好了,而且我的 key.properties 路径也是正确的。

在此输入图片描述

我该怎么办?


尝试将key.properties中的storeFile属性设置为key.jks而不是绝对路径。这样有帮助吗? - Mol0ko
1个回答

2

一旦您将key.jks文件放置在android/app/文件夹中,只需更改key.properties文件中第4行为:storeFile=key.jks


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接