Changing Build Variant in Android Studio
By default, Android Studio builds the debug version of app, which is intended for use only during development, when you click Run. To change the build variant, go to Build > Select Build Variant in the menu bar. Select Build Variant menu item will be grayed out if project-level build.gradle [...]