Top "Android-build-type" questions

The buildTypes element controls how to build and package your app

How do I detect if I am in release or debug mode?

How can I detect in my code that I am in Release mode or Debug mode?

android android-build-type
How to use build types (debug vs release) to set different styles and app names?

Background On Android Studio, you can have different build types, each has its own configuration, similar to product-flavors (as shown …

android android-studio android-resources android-productflavors android-build-type
Android Studio: Check for a custom build type

I am trying to have a piece of code detect a BuildType, but I am a bit stuck. Whenever I …

java android android-studio android-gradle-plugin android-build-type
Error:Build-in class shrinker and multidex are not supported yet

After adding useProguard true and multidexEnabled true to my built types this error comes up when trying to build: Error:…

android android-build android-build-type
Android Studio : How to remove/filter build variants for default debug and release buildTypes and keep only those using custom buildTypes?

I have created custom buildTypes as follows: buildTypes { releasefree.initWith(buildTypes.release) releasefree { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.…

android android-studio gradle android-build-type
Android Studio 3 + Gradle 4.0 + shrinkResources + libraryProject = Unable to find a matching configuration in project

I've problems to migrate my project to the newest Gradle 4.0 + Android Studio 3 version, which gives me all kind of errors. …

android gradle build.gradle android-build-type android-studio-3.0