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.