All, we are facing a weird issue where our app is working fine in a debug build variant. But it is failing to execute properly on a release build variant. The even weird thing is that if we set debuggable to true for the release build variant, it works fine. Proguard is disabled in both variants.
Im trying to understand what is the difference between the release and debug build variants in android. could you point me to any resources which helps me to understand the differences ?
Thank you
The following works. But if i remove the debuggable, it fails to work properly. Debug build always works.
buildTypes {
release {
debuggable true
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.debug
}
}
Maybe the problem is related to the signing of the apk. If you use debuggable true
then your app is signed with a generic debug keystore and everything works correctly.
Conversely, if you remove it you have to provide
storeFile file("myreleasekey.keystore")
storePassword "password"
keyAlias "MyReleaseKey"
keyPassword "password"
More info here:
https://developer.android.com/studio/build/build-variants.html#build-types
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