任务 ':app:validateSigningRelease' 执行失败
Execution failed for task ':app:validateSigningRelease'
我正在尝试为我的应用制作一个 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.jks 文件的路径是正确的。
我该怎么办?
在 android/app/
文件夹中有了 key.jks
后,只需将 key.properties
中的第 4 行更改为:
storeFile=key.jks
.
我正在尝试为我的应用制作一个 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.jks 文件的路径是正确的。
我该怎么办?
在 android/app/
文件夹中有了 key.jks
后,只需将 key.properties
中的第 4 行更改为:
storeFile=key.jks
.