Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build type is always "Release"

I am obtaining that BuildConfig.BUILD_TYPE returns always "release", even if I am compiling it in debug mode.

I include here a part of my build.gradle:

buildTypes {
        debug {
            debuggable true
            minifyEnabled false
        }
        release {
            debuggable false
            minifyEnabled false
            //md5 sign certificate split in two
            proguardFile './dexguard-config/dexguard-release-conservative.pro'
            //proguardFile getDefaultDexGuardFile('dexguard-release-aggressive.pro')
            proguardFile 'dexguard-project.txt'
        }

Thank you!

like image 492
Jaume Colom Avatar asked Sep 06 '25 02:09

Jaume Colom


1 Answers

Make sure you are importing BuildConfig of your own module, with the package name from its AndroidManifest.xml.

Other modules' BuildConfigs might be hardwired to release.

like image 184
laalto Avatar answered Sep 09 '25 00:09

laalto