I got this error, trying to build APK from an open source project
Unless this is for private use, or you are just lazy to generate keystore, just REMOVE the following codes from /app/build.gradle.
You should be good to go
Code:
Execution failed for task ':app:validateSigningDebug'.
> Keystore file not set for signing config releaseConfig
Unless this is for private use, or you are just lazy to generate keystore, just REMOVE the following codes from /app/build.gradle.
Code:
Properties props = new Properties()
def propFile = file('../signing.properties')
if (propFile.canRead()) {
props.load(new FileInputStream(propFile))
if (props != null &&
props.containsKey('SIGN_FILE') && props.containsKey('SIGN_PASSWORD') &&
props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {
android.signingConfigs.releaseConfig.storeFile = file(props['SIGN_FILE'])
android.signingConfigs.releaseConfig.storePassword = props['SIGN_PASSWORD']
android.signingConfigs.releaseConfig.keyAlias = props['KEY_ALIAS']
android.signingConfigs.releaseConfig.keyPassword = props['KEY_PASSWORD']
} else {
println 'release build not found signing properties'
android.buildTypes.release.signingConfig = null
}
} else {
println 'release build not found signing file'
android.buildTypes.release.signingConfig = null
}
buildTypes {
debug {
versionNameSuffix "-debug"
if (signingConfigs.releaseConfig != null) {
signingConfig signingConfigs.releaseConfig
}
}
release {
minifyEnabled false
if (signingConfigs.releaseConfig != null) {
signingConfig signingConfigs.releaseConfig
}
}
}
You should be good to go