The error complains that I have not set the signingConfig.release.keyPassword, however I am setting it.
I already tried hardcoding the password instead retrieving it from the key.properties file however that didn't help.
// build.gradle file
// ... the rest of the build code
android {
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
try this: In build.gradle(Module: app)
// ... the rest of the build code
android {
signingConfigs {
release {
storeFile file('your_key_store_path')
storePassword 'your_store_password'
keyAlias = 'your_key_alias'
keyPassword 'your_key_password'
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
Also you can create Signing Configs
in Android Studio
:File
> Project Structure
> Select Modules
> Select Signing Configs
.
In Signing Configs
, there is debug
config is already created but you can create a new one by pressing the +
icon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With