i created a key and generated a signed apk with the key created.
i used "Generate Signed apk" in android studio
then i used the keytool command to extract the SHA1 fingerprint and added to the firebase console in my app project settings
but still firebase does not work in release builds but works fine in debug variant.
android {
signingConfigs {
release {
storeFile file('C:\\folder\\signkey.jks')
keyAlias 'key0'
storePassword ********
keyPassword ********
}
}
compileSdk 31
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled = true
shrinkResources = true
debuggable false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
i checked gradle and the signing config is correctly configured and i tried generating another key but also didnt work