You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For release signing, passwords can be excluded and the build system will issue a prompt asking for the password.
The build.json password fields when left empty should cause gradle to prompt for the password during build, but an error is thrown instead.
What is expected to happen?
Password prompts to be shown.
What does actually happen?
An error is thrown:
FAILURE: Build failed with an exception.
* Where:
Script '/development/cordova/tests/tp-iri-client/platforms/android/CordovaLib/cordova.gradle' line: 141
* What went wrong:
Failed to create component for 'dialog' reason: java.awt.HeadlessException
> java.awt.HeadlessException (no error message)
* 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 12s
Information
I've debugged this problem and it's because when gradle daemon is enabled, there is no "console", therefore you cannot use a headless (terminal) password prompt.
So to use password prompts, we must turn off headless mode, which will enable GUI password prompt when invoked.
Bug Report
Problem
The
build.json
password fields when left empty should cause gradle to prompt for the password during build, but an error is thrown instead.What is expected to happen?
Password prompts to be shown.
What does actually happen?
An error is thrown:
Information
I've debugged this problem and it's because when gradle daemon is enabled, there is no "console", therefore you cannot use a headless (terminal) password prompt.
So to use password prompts, we must turn off headless mode, which will enable GUI password prompt when invoked.
First brought attention from #1020 (comment)
I've already debugged the problem and a PR is incoming shortly...
Command or Code
cordova build android --release
While having a
buiild.json
file, withpassword
andstorePassword
as empty strings.Environment, Platform, Device
Issue was replicated on both Ubuntu & Windows
Version information
Cordova CLI 9
cordova-android 9
Checklist
The text was updated successfully, but these errors were encountered: