Enable Android Studio Logcat Logging for Release Build

July 21, 2018

To Run Release build in Android Studio, click on Build Variants (Left-lower corner), change to release build.

To enable logcat logging for Release build, add debuggable true to build.gradle (Module:app).

android {
    compileSdkVersion 27
    defaultConfig {
        ...
    }
    buildTypes {
        debug {

        }
        release {
            debuggable true
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

NOTE: Refer to Android Studip Run ‘app’ as Release.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.