Closed mahdi-malv closed 2 years ago
This is not an actual code bug, but a missing private key (sign key)
Short answer:
Replace this:
signingConfigs {
release {
if (findProperty("keyStorePath") != null) {
storeFile file(findProperty("keyStorePath"))
storePassword findProperty("keyStorePassword")
keyAlias findProperty("keyAlias")
keyPassword findProperty("keyPassword")
} else {
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(rootProject.file('key.properties')))
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
to this:
buildTypes {
release {
signingConfig signingConfigs.debug
}
}
Since you're only testing, you don't need a signKey
Actuall answer
key.properties
in root folder (android/) and paste the content:keyAlias=signAlias
keyPassword=keyPassword
storeFile=dirToKeyFile
storePassword=storePASSWORD
NOTE: Issue will remain open until next release removes the need for a real signKey in release
task since example should not require such thing
UPDATE: 2.1.7 has fixed this
Describe the issue:
When building
example
app, SignKey issues occurHow to reproduce this issue: Run example's release related tasks