Marcin Oziemski
1 min readFeb 15, 2019

--

Hmm, it wasn't working for me with the newest Gradle version.
Even when “useProguard false” was set I still saw my apk was obfuscated. So like Xavier Rubio Jansana suggested adding Proguard rule with one flag (dontobfuscate) worked for me.

buildTypes {
debug {
versionNameSuffix "-DEBUG"
applicationIdSuffix ".debug"
testCoverageEnabled true
debuggable true
minifyEnabled true
shrinkResources false
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'proguard-rules-without-obfuscation.pro'
}
release {
debuggable false
minifyEnabled true
shrinkResources true
zipAlignEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Marcin Oziemski
Marcin Oziemski

Written by Marcin Oziemski

Senior Android and Flutter Developer. Working at Netguru.

No responses yet

Write a response