You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm, maybe you've switched build type and didn't sync gradle in Android
Studio? BuildConfig should be regenerated from scratch, I don't remember
putting "debuggable true" for release build type.
You are right, BuildConfig is regenerated from scratch, and my Android Studio has sync after the build type switching. With some investigation, I found what make the magic change to make BuildConfig.DEBUG is always 'true' is bellowing line within the app/build.gradle in the 'release' section of buildTypes config:
testCoverageEnabled true
removing this line and the BuildConfig.java seems correct and DEBUG = false for release build.
then I add the line back, BuildConfig.DEBUG = Boolean.parseBoolean("true");
Would like to double check and apply the patch if it is fine.
You are right, BuildConfig is regenerated from scratch, and my Android
Studio has sync after the build type switching. With some investigation, I
found what make the magic change to make BuildConfig.DEBUG is always 'true'
is bellowing line within the app/build.gradle in the 'release' section of
buildTypes config:
testCoverageEnabled true
removing this line and the BuildConfig.java seems correct and DEBUG =
false for release build.
then I add the line back, BuildConfig.DEBUG = Boolean.parseBoolean("true");
Would like to double check and apply the patch if it is fine.
With Android Studio, build the project and found DEBUG is Boolean.parseBoolean("true"), which might be Boolean.parseBoolean("false").
The text was updated successfully, but these errors were encountered: