Distinctive features of release and debugging in Android

That's it, we are faced with a strange problem when our application works fine in the debugging option. But he does not properly implement the release option. It’s even strange that if we set the debugging to true for the release build option, it works fine. Proguard is disabled in both versions.

I am trying to understand what is the difference between release build and debugging options in android. could you point me to any resources that will help me understand the differences?

thank

The following work. But if I remove the debugging, it will not work properly. Debug build always works.

buildTypes {
    release {
        debuggable true
        signingConfig signingConfigs.release
    }
    debug {
        signingConfig signingConfigs.debug
    }
}
+4
source share
2 answers

, apk. debuggable true, . , ,

storeFile file("myreleasekey.keystore")
storePassword "password"
keyAlias "MyReleaseKey"
keyPassword "password"

:

https://developer.android.com/studio/build/build-variants.html#build-types

+1

, - BuildConfig.DEBUG java . .

- . , if(BuildConfig.DEBUG) { Toast(...); }. . if(!BuildConfig.DEBUG) { Toast(...); }, .

0

All Articles